Skip to content

Cleared the ACC_VARARGS access flag on all shadow methods#3

Merged
katherine-hough merged 1 commit into
mainfrom
var-args-fix
Sep 20, 2025
Merged

Cleared the ACC_VARARGS access flag on all shadow methods#3
katherine-hough merged 1 commit into
mainfrom
var-args-fix

Conversation

@katherine-hough
Copy link
Copy Markdown
Collaborator

Cleared the ACC_VARARGS access flag on all shadow methods.

As noted in the JVM 21 spec: "[a] future edition of this specification may require that the last parameter descriptor of the method descriptor is an array type if the ACC_VARARGS flag is set in the access_flags item." This constraint appears to now be enforced by certain JDKs. Since Galette-added shadow methods have a trailing argument of type TagFrame, retaining the ACC_VARARGS access flag from the original method produces errors like the one described in Issue 2. Clearing the ACC_VARARGS access flag should resolve this issue.

@katherine-hough katherine-hough merged commit bc6002c into main Sep 20, 2025
16 checks passed
@katherine-hough katherine-hough deleted the var-args-fix branch September 20, 2025 17:16
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