Compatibility issue with Spring property from 1.4.0 to 1.5.0.RC1
----------------------------------------------------------------
Key: JRUBY-4737
URL: http://jira.codehaus.org/browse/JRUBY-4737
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.5
Environment: (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
Reporter: Peter Schröder
Assignee: Thomas E Enebo
Priority: Minor
i have a spring application that wires a ruby object as a spring bean and i use
property injection on that:
{noformat}
<lang:jruby id="identifier" script-interfaces="de.nofail.Identifier"
script-source="classpath:/ruby/identifier.rb">
<!--
http://static.springsource.org/spring/docs/3.0.2.RELEASE/spring-framework-reference/html/expressions.html
-->
<lang:property name="uuid" value="#{
T(java.util.UUID).randomUUID().toString() }" />
</lang:jruby>
{noformat}
updating to the latest version rises an exception on this configuration:
{noformat}
PropertyAccessException 1: org.springframework.beans.MethodInvocationException:
Property 'uuid' threw exception; nested exception is
org.springframework.scripting.jruby.JRubyScriptUtils$JRubyExecutionException:
cannot convert instance of String to void; nested exception is
org.jruby.exceptions.RaiseException: cannot convert instance of String to void
{noformat}
example code is on github: http://github.com/phoet/ruby-java-jruby-rjb/
btw 1.5.0.RC1 is missing in the jira versions...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email