Numeric#eql? sometimes returns nil insteaf of false
---------------------------------------------------
Key: JRUBY-1932
URL: http://jira.codehaus.org/browse/JRUBY-1932
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC1
Environment: Latest JRuby 1.1RC1 built from trunk
Reporter: Vladimir Sizikov
Attachments: numeric-eql-returns-nil.patch
An attempt to execute:
jruby test/test_numeric
Leads to:
1) Failure:
test_eql(TestNumeric)
<false> expected but was <nil>.
The minimized case:
{noformat}
p Numeric.new.eql?Numeric.new
{noformat}
In MRI prints false.
In JRuby prints nil.
The proposed patch fixes the problem and the test failure.
(Btw, is there a reason why this test_numeric.rb, and plenty others, are not
wired into the "ant tests" runs? We'd see the failure earlier).
--
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