Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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.
Fixed in r9190.