Skip to content

Use SmartBinder to set up struct calls#7643

Merged
headius merged 2 commits intojruby:masterfrom
headius:struct_indy_fix
Feb 9, 2023
Merged

Use SmartBinder to set up struct calls#7643
headius merged 2 commits intojruby:masterfrom
headius:struct_indy_fix

Conversation

@headius
Copy link
Member

@headius headius commented Feb 9, 2023

Original logic used hardcoded argument offsets, which was broken by my work in #7589 that removed the "caller" argument from self- calls that don't need to check visibility.

The new logic uses SmartBinder and Signature to manipulate incoming arguments by name rather than by index.

Fixes #7642

Original logic used hardcoded argument offsets, which was broken
by my work in jruby#7589 that removed the "caller" argument from self-
calls that don't need to check visibility.

The new logic uses SmartBinder and Signature to manipulate
incoming arguments by name rather than by index.

Fixes jruby#7642
@headius headius added this to the JRuby 9.4.2.0 milestone Feb 9, 2023
Test both other- and self-calling, since it was self-calling that
broke in jruby#7642
@headius headius merged commit 9a1b127 into jruby:master Feb 9, 2023
@headius headius deleted the struct_indy_fix branch February 9, 2023 13:58
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.

[9.4.1.0] ArrayIndexOutOfBoundsException

1 participant