Update JavaUtil.coerceNumericToType() to coerce numerics to the Java
Serializable interface
-------------------------------------------------------------------------------------------
Key: JRUBY-3137
URL: http://jira.codehaus.org/browse/JRUBY-3137
Project: JRuby
Issue Type: Improvement
Components: Java Integration
Affects Versions: JRuby 1.1.5
Environment: Soylatte 1.0.3
Reporter: Michael S. Allman
Attachments: coerce_to_serializable.patch
Currently, if you try to pass a Ruby Fixnum to a Java method whose argument
type is Serializable, it fails with a message that it can't coerce a Fixnum to
Serializable. Well, I'm not going to accept such a defeatist attitude!!! :)
Yes, we *can* coerce a Fixnum to Serializable, and this patch proves it.
--
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