Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.0.0, JRuby 1.0.1
-
Fix Version/s: JRuby 1.0.2, JRuby 1.1b1
-
Component/s: Interpreter
-
Labels:None
Description
Here is reduced testcase:
# Test weird likely-a-bug where method() will repurpose where super goes to
class Foo222
def a; 'a'; end
def b; 'b'; end
end
class Bar222 < Foo222
def a; super; end
alias b a
end
test_equal('a', Bar222.new.b)
test_equal('b', Bar222.new.method(:b).call)
Charlie sent a message to ruby-core on this since this seems like a bug, but we will patch this for now since the fix is pretty simple and we want to be compatible.
Issue Links
- relates to
-
JRUBY-1192
Proposed MRI bug...method() on aliased method should behave the same as the aliased call itself
-
Fixed in commit 3698