Skip to content
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

Possible incompatibility with inherited and super #1635

Closed
beerlington opened this issue Apr 15, 2014 · 1 comment
Closed

Possible incompatibility with inherited and super #1635

beerlington opened this issue Apr 15, 2014 · 1 comment

Comments

@beerlington
Copy link

Someone opened an issue on a gem I maintain and I've narrowed it down to what appears to be an inconsistency between JRuby and MRI.

When running my gem's specs in MRI 2.1 (or anything 1.8.7+), this super line just calls inherited as expected. With JRuby 1.7.12, the super line calls whatever method is dynamically defined above, and then calls inherited. I confirmed this by placing puts __method__ right above super. That seems like an issue with JRuby since my understanding of super is that it should only be calling whatever the current method is (inherited), but on the superclass.

It's probably an edge case, but I figured I'd report it since it does seem to be an inconsistency between the two APIs.

@kares
Copy link
Member

kares commented May 23, 2017

verified this works (script from beerlington/classy_enum#36) under 9.1.8.0 (classy_enum 3.4.0, AS/AR 3.2.8)

@kares kares closed this as completed May 23, 2017
@kares kares added this to the Won't Fix milestone May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants