Using a ruby Numeric to set a parameter with a signature of java.lang.Integer
causes a java.lang.ClassCastException
-------------------------------------------------------------------------------------------------------------------
Key: JRUBY-3072
URL: http://jira.codehaus.org/browse/JRUBY-3072
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.1.4, JRuby 1.1.3
Reporter: K. Adam Christensen
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)
--
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