Skip to content

Comments

Copy try-catch blocks when merging static initializers#644

Open
DaMatrix wants to merge 1 commit intoSpongePowered:masterfrom
DaMatrix:merge-clinit-try-catch-blocks
Open

Copy try-catch blocks when merging static initializers#644
DaMatrix wants to merge 1 commit intoSpongePowered:masterfrom
DaMatrix:merge-clinit-try-catch-blocks

Conversation

@DaMatrix
Copy link

Without this change, merged exception handler code is unreachable, as the try-catch block start/end/handler information isn't copied into the target method.

This also causes the merged method to work as expected if the target method contains more than one RETURN instruction.

This also causes the merged method to work as expected if the target method contains more than one RETURN instruction.
@DaMatrix DaMatrix force-pushed the merge-clinit-try-catch-blocks branch from d083c5e to ec2d9c1 Compare September 15, 2023 14:45
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