You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ect owner
We discovered an issue in jruby where a method created via `alias_method` on a class with a prepended module had an owner that was different from the class on which it was defined.
The jruby folks suggested adding a spec here to cover this case. See jruby/jruby#5080.
Environment
I've tested this on 9.1.16.0 and the latest master.
Expected Behavior
Given the following code, I'd expect a method's owner to be equal to the class where the method is defined.
Both of these lines should return true:
Actual Behavior
The second line returns false:
I think it's because the
owner
of the aliased method doesn't include the prepended module:I've also tested this on MRI 2.3.1 and 2.4.3 and they behave as expected.
The text was updated successfully, but these errors were encountered: