Fixnums are inconsistently converted when target type is java.lang.Object
-------------------------------------------------------------------------

                 Key: JRUBY-3990
                 URL: http://jira.codehaus.org/browse/JRUBY-3990
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.3.1
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.4


In some cases, such as calling methods that receive Object, a Fixnum will be 
converted to the narrowest boxed java.lang.Number type, such as Byte or Short. 
In other cases, such as when pulling values out of a RubyArray as though it 
were a java.util.List, Fixnum is only converted to Long. A single consistent 
case is needed, and we have decided on the "smallest possible" path as the 
right way to go to allow all cases to treat the default Fixnum coercible as a 
java.lang.Number.

Changes are being tested and should be committed shortly.

-- 
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


Reply via email to