jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-3207

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.5
  • Fix Version/s: JRuby 1.2
  • Component/s: Interpreter
  • Labels:
    None

Description

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.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 15/Feb/09 10:07 PM

Fixed in r9190.

Show
Charles Oliver Nutter added a comment - 15/Feb/09 10:07 PM Fixed in r9190.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Phil Hagelberg
Vote (0)
Watch (0)

Dates

  • Created:
    01/Dec/08 3:15 PM
    Updated:
    21/Mar/09 1:14 PM
    Resolved:
    15/Feb/09 10:07 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.