Skip to content

Don't dup ruby2 kwargs for non-kwargs method#9151

Closed
headius wants to merge 2 commits intojruby:masterfrom
headius:less_kwargs_duping
Closed

Don't dup ruby2 kwargs for non-kwargs method#9151
headius wants to merge 2 commits intojruby:masterfrom
headius:less_kwargs_duping

Conversation

@headius
Copy link
Member

@headius headius commented Dec 31, 2025

Fixes #8976.

JRuby was overzealous in duping kwargs hashes, losing the
ruby2_keywords_hash bit in the process. This backs off duping
and only does so if receiving ruby2 kwargs for a modern kwargs
method.

See jruby#8976
@headius
Copy link
Member Author

headius commented Jan 28, 2026

Closing this in favor of #9192 which fixes the issue without regressing. I'll do a separate PR for a large refactoring of this logic.

@headius headius closed this Jan 28, 2026
@headius headius deleted the less_kwargs_duping branch January 28, 2026 23:30
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 this pull request may close these issues.

Regression in keyword argument matching in JRuby v10.0.1.0

1 participant