RFR: 8361730: The CodeBuilder.trying(BlockCodeBuilder,CatchBuilder) method generates corrupted bytecode in certain cases

Adam Sotona asotona at openjdk.org
Fri Aug 8 17:47:10 UTC 2025


On Fri, 1 Aug 2025 18:05:54 GMT, Chen Liang <liach at openjdk.org> wrote:

> Explicitly document that BlockCodeBuilder expects control flow to continue after it merges back to the parent block, so failure to do that by the users can lead to malformed code. This is better than introducing complex and costly analysis.

Looks good to me, thanks.

-------------

Marked as reviewed by asotona (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26602#pullrequestreview-3101719566


More information about the core-libs-dev mailing list