super error message is inaccurate when superclass doesn't implement method.
---------------------------------------------------------------------------

                 Key: JRUBY-3207
                 URL: http://jira.codehaus.org/browse/JRUBY-3207
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.1.5
            Reporter: Phil Hagelberg
            Priority: Minor


class Foo
  def bar
    super
  end
end

Foo.new.bar

JRuby gives the error message: NoMethodError: undefined method `bar' for 
#<Foo:0x1b963c4>
whereas MRI says: NoMethodError: super: no superclass method `bar'

The problem isn't that it's undefined in Foo, it's that it's not defined in any 
superclass.

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