Skip to content

Don't set callInfo when target does not use kwargs#8918

Merged
headius merged 1 commit intojruby:jruby-9.4from
headius:no_keywords_no_callinfo
Jul 15, 2025
Merged

Don't set callInfo when target does not use kwargs#8918
headius merged 1 commit intojruby:jruby-9.4from
headius:no_keywords_no_callinfo

Conversation

@headius
Copy link
Member

@headius headius commented Jul 15, 2025

Native methods that don't accept formal keyword arguments and Ruby methods that are ruby2_keywords will not use callInfo to handle formal keyword arguments. We clear it here so any incoming kwargs flags do not get stuck and interfere with other calls.

Fixes #8782

@headius headius added this to the JRuby 9.4.14.0 milestone Jul 15, 2025
@headius headius force-pushed the no_keywords_no_callinfo branch from 676b5e9 to c360c7c Compare July 15, 2025 18:43
Native methods that don't accept formal keyword arguments and Ruby
methods that are ruby2_keywords will not use callInfo to handle
formal keyword arguments. We clear it here so any incoming kwargs
flags do not get stuck and interfere with other calls.

Fixes jruby#8782
@headius headius force-pushed the no_keywords_no_callinfo branch from c360c7c to b983f15 Compare July 15, 2025 19:05
@headius headius merged commit 1b5b0d0 into jruby:jruby-9.4 Jul 15, 2025
97 checks passed
@headius headius deleted the no_keywords_no_callinfo branch July 15, 2025 20:04
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.

1 participant