Implicit conversion to List<Long> results in a List<Byte> or List<Integer>
--------------------------------------------------------------------------
Key: JRUBY-4039
URL: http://jira.codehaus.org/browse/JRUBY-4039
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.4.0RC1
Environment: Ubuntu linux
Reporter: Greg Fodor
Attachments: bug2.tar.gz
If you pass a ruby list such as [1,2,3] to a Java method that takes a parameter
of List<Long>, JRuby 1.4.0RC1 does not implicitly cast to a Long. (But instead,
to a Byte I think.) This works in 1.3.0. The attached test case defines a
simple class Test that receives a List<Long>, and the rb file passes in [1,2,3]
and expects to pull out a Long from the first element. In 1.4.0, an exception
is thrown in the JVM.
--
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