Make it clear which Java method maps to each equality method
------------------------------------------------------------
Key: JRUBY-971
URL: http://jira.codehaus.org/browse/JRUBY-971
Project: JRuby
Issue Type: Bug
Reporter: Charles Oliver Nutter
Assignee: Thomas E Enebo
Fix For: JRuby 1.0.0
There's some confusion about which Java methods should be redefined/rebound for
each of the equality methods. For example, RubyKernel defines ==, eql?, and
equal? all to map to obj_equal, and === maps to equal. However Fixnum maps ==
to an overridden implementation of equal, which calls super.equal. This is
incorrect behavior. We need to ensure that all the equality methods map to the
correct Java methods, and that we're overriding the right ones in every case.
--
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