From f9bc2db9a9b8e5b7314fba5f70cb79e07ed02bd8 Mon Sep 17 00:00:00 2001 From: Adam Sotona Date: Tue, 9 Apr 2024 14:41:39 +0000 Subject: [PATCH] 8325371: Missing ClassFile.Option in package summary Reviewed-by: briangoetz --- .../java/lang/classfile/ClassFile.java | 2 +- .../java/lang/classfile/package-info.java | 26 ++++++++++++------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/java.base/share/classes/java/lang/classfile/ClassFile.java b/src/java.base/share/classes/java/lang/classfile/ClassFile.java index c024094f777..27c2f18fe96 100644 --- a/src/java.base/share/classes/java/lang/classfile/ClassFile.java +++ b/src/java.base/share/classes/java/lang/classfile/ClassFile.java @@ -180,7 +180,7 @@ public sealed interface ClassFile /** * Option describing whether to filter unresolved labels. - * Default is {@code FAIL_ON_DEAD_LABELS} to throw IllegalStateException + * Default is {@code FAIL_ON_DEAD_LABELS} to throw IllegalArgumentException * when any {@link ExceptionCatch}, {@link LocalVariableInfo}, * {@link LocalVariableTypeInfo}, or {@link CharacterRangeInfo} * reference to unresolved {@link Label} during bytecode serialization. diff --git a/src/java.base/share/classes/java/lang/classfile/package-info.java b/src/java.base/share/classes/java/lang/classfile/package-info.java index 39244e98cfc..de94c09d9b4 100644 --- a/src/java.base/share/classes/java/lang/classfile/package-info.java +++ b/src/java.base/share/classes/java/lang/classfile/package-info.java @@ -174,20 +174,26 @@ * for some statically enumerated options, as well as factories for more complex options, * including: * *

* Most options allow you to request that certain parts of the classfile be