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

JRuby 9.4 defines Hash#index, and defines Hash.ruby2_keywords_hash{,?} as instance methods #7485

Closed
jeremyevans opened this issue Nov 25, 2022 · 0 comments · Fixed by #7488
Closed
Milestone

Comments

@jeremyevans
Copy link
Contributor

Environment Information

Error occurred in Github Actions: https://github.com/jeremyevans/ruby-cicphash/actions/runs/3544830713/jobs/5952456756
jruby 9.4.0.0 (3.1.0) 2022-11-23 95c0ec159f OpenJDK 64-Bit Server VM 11.0.17+8 on 11.0.17+8 +jit [x86_64-linux]

Expected Behavior

JRuby 9.4 should define the same public instance methods for Hash that Ruby 3.1 defines.

Actual Behavior

JRuby 9.4 defines Hash#index, was was removed in Ruby 3.0.

JRuby 9.4 defines ruby2_keywords_hash and ruby2_keywords_hash? as Hash instance methods, when they should be defined as Hash class methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants