Object methods defined in Kernel should not be module methods too
-----------------------------------------------------------------

                 Key: JRUBY-1466
                 URL: http://jira.codehaus.org/browse/JRUBY-1466
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.x
            Reporter: MenTaLguY
            Assignee: Thomas E Enebo
            Priority: Minor
             Fix For: JRuby 1.x
         Attachments: no-module-methods-for-object.diff

Currently, the various methods on RubyObject are defined with module = true, 
which has the effect that Kernel#== also gets defined directly as Kernel.==; 
this is unnecessary and contrary to MRI, where Kernel.== is obtained "honestly" 
through the Module < Object < Kernel inheritance chain.  It also seems to cause 
subtle problems for my attempts to implement BasicObject.

Patch to remedy attached.

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