Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: JRuby 1.1.3, JRuby 1.1.4
-
Fix Version/s: None
-
Component/s: Java Integration
-
Labels:None
Description
An example of this failing can be found at http://gist.github.com/19127
Trying to set a property that is of type java.lang.Integer with a ruby Numeric throws a java.lang.ClassCastException because ruby is converting the Numeric to a java.lang.Long
The Actual message: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer (NativeException)
I guess I don't follow. The example does not appear to be complete; type declarations are missing on the two "id" parameters, and the script is not runnable without some componentDAO I did not see in the gist. Can you re-test with 1.1.6 or trunk/1.2 please, and if the problem still exists reopen this bug with a small reproducible case?