Converting a Ruby Float to a Java Comparable results in a proxy
---------------------------------------------------------------

                 Key: JRUBY-3291
                 URL: http://jira.codehaus.org/browse/JRUBY-3291
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.6
            Reporter: Michael S. Allman
         Attachments: float_bug.tgz, numeric_comparable.patch

Untar the attached file float_bug.tgz.  This is an Eclipse project.  Import it 
into your Eclipse workspace.  Run Main.  You should see something like 
org.jruby.gen.interfaceimpl457011...@fdc00 on the console.  This is the proxy 
that JRuby is creating to convert a Ruby float to a Java Comparable.  Of 
course, a Java Float implements Comparable so no such proxy is necessary.

The attached patch looks for the special case of converting a Ruby Float or 
Fixnum to a Java Comparable and converts them to a Java Double or Long, 
respectively.

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