Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.5
-
Fix Version/s: JRuby 1.5
-
Component/s: None
-
Labels:None
-
Environment:(Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
Description
i have a spring application that wires a ruby object as a spring bean and i use property injection on that:
<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>
updating to the latest version rises an exception on this configuration:
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
example code is on github: http://github.com/phoet/ruby-java-jruby-rjb/
btw 1.5.0.RC1 is missing in the jira versions...
Can you provide a full stack trace or show us how to reproduce this on our end? I think I may know where the problem is, but I need a bit better description of how to reproduce it.