Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.0.0
-
Fix Version/s: JRuby 1.5
-
Component/s: Interpreter
-
Labels:None
-
Number of attachments :
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
- is related to
-
JRUBY-1191
method() on alias calls wrong super (but not in our opinion)
-
This is a clone of the original bug that fixed the issue. Since we believe the original behavior was correct, I'm filing this to continue following up with ruby-core. If they agree to fix it, we will revert to the original behavior on the same schedule.