Allow Ruby Float to always be coerced to a Java float value
-----------------------------------------------------------
Key: JRUBY-4529
URL: http://jira.codehaus.org/browse/JRUBY-4529
Project: JRuby
Issue Type: Bug
Components: Java Integration
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.5
Attachments: float.patch
The logic in JavaUtil does not currently allow a Ruby Float (which is
represented with a 64-bit Java double) to be coerced to a Java float (32-bit)
under some peculiar circumstances, like if its value is outside float range.
But it seems like it should be possible to coerce a Ruby Float to a double in
all cases, like doing a Java cast to float.
We need to evaluate this and possibly apply the attached patch to no longer
limit Ruby Float to Java float coercion.
--
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