Skip to content

Commit 2a1313c

Browse files
committedMar 15, 2018
Also traverse aliases for to dig up owner class. Fixes #5080
1 parent 9cd2bae commit 2a1313c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎core/src/main/java/org/jruby/AbstractRubyMethod.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public String getMethodName() {
100100

101101
@JRubyMethod(name = "owner")
102102
public IRubyObject owner(ThreadContext context) {
103-
return method.getDefinedClass();
103+
return method.getRealMethod().getDefinedClass();
104104
}
105105

106106
@JRubyMethod(name = "source_location")

0 commit comments

Comments
 (0)
Please sign in to comment.