-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong #inspect is used in Method#inspect #4995
Comments
I have pushed a branch with fixes that re-align our Method#inspect logic with CRuby. Once it clears CI I'll merge. |
@apotonick Can you put together a spec for ruby/spec? |
Sure, @headius! Thanks for the fix! In which directory would that go in ruby/spec? |
@apotonick core/method/inspect_spec.rb should do it. Fix merged to 9.1 and master! |
@apotonick Still having trouble confirming the fix? I just ran it against 9.1.16 snapshot and it does indeed seem to be fixed:
|
Sorry, I was being an idiot and still had my |
Environment
jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae OpenJDK 64-Bit Server VM 25.151-b12 on 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12 +jit [linux-x86_64]
Expected Behavior
I override
Module.inspect
via a module (Inspect
),A.inspect
produces the correct result.I am expecting the same
inspect
being used when inspecting a method instance fromA
.This is the behavior in Ruby 2.5.
Actual Behavior
However, in Jruby it seems as if
inspect
doesn't use the correct version ofA.inspect
, but the original one.The text was updated successfully, but these errors were encountered: