Skip to content

Commit c5cbcac

Browse files
committed
8361730: The CodeBuilder.trying(BlockCodeBuilder,CatchBuilder) method generates corrupted bytecode in certain cases
Reviewed-by: asotona
1 parent dccca0f commit c5cbcac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/java.base/share/classes/java/lang/classfile/CodeBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ default CodeBuilder transforming(CodeTransform transform, Consumer<CodeBuilder>
175175
* A builder for blocks of code. Its {@link #startLabel()} and {@link
176176
* #endLabel()} do not enclose the entire method body, but from the start to
177177
* the end of the block.
178+
* <p>
179+
* The location where a block of code merges back to its parent block, as
180+
* represented by the {@link #breakLabel()}, is expected to be reachable,
181+
* either from this block or the parent block. The built code may be
182+
* malformed if there is no executable code at that location.
178183
*
179184
* @since 24
180185
*/

0 commit comments

Comments
 (0)