This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
commit 1c5fd4e2224572f5e0d07c3e080a34d0dde1de1a Author: Gary Gregory <[email protected]> AuthorDate: Sat Jan 10 22:50:22 2026 -0500 Javadoc --- .../java/org/apache/bcel/ExceptionConstants.java | 31 ++++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/bcel/ExceptionConstants.java b/src/main/java/org/apache/bcel/ExceptionConstants.java index 98d90b12..61c6edc9 100644 --- a/src/main/java/org/apache/bcel/ExceptionConstants.java +++ b/src/main/java/org/apache/bcel/ExceptionConstants.java @@ -42,41 +42,61 @@ public interface ExceptionConstants { Class<LinkageError> LINKING_EXCEPTION = LinkageError.class; /** - * Linking Exceptions + * Linking Exceptions. */ + /** Exception class: ClassCircularityError. */ Class<ClassCircularityError> CLASS_CIRCULARITY_ERROR = ClassCircularityError.class; + /** Exception class: ClassFormatError. */ Class<ClassFormatError> CLASS_FORMAT_ERROR = ClassFormatError.class; + /** Exception class: ExceptionInInitializerError. */ Class<ExceptionInInitializerError> EXCEPTION_IN_INITIALIZER_ERROR = ExceptionInInitializerError.class; + /** Exception class: IncompatibleClassChangeError. */ Class<IncompatibleClassChangeError> INCOMPATIBLE_CLASS_CHANGE_ERROR = IncompatibleClassChangeError.class; + /** Exception class: AbstractMethodError. */ Class<AbstractMethodError> ABSTRACT_METHOD_ERROR = AbstractMethodError.class; + /** Exception class: IllegalAccessError. */ Class<IllegalAccessError> ILLEGAL_ACCESS_ERROR = IllegalAccessError.class; + /** Exception class: InstantiationError. */ Class<InstantiationError> INSTANTIATION_ERROR = InstantiationError.class; + /** Exception class: NoSuchFieldError. */ Class<NoSuchFieldError> NO_SUCH_FIELD_ERROR = NoSuchFieldError.class; + /** Exception class: NoSuchMethodError. */ Class<NoSuchMethodError> NO_SUCH_METHOD_ERROR = NoSuchMethodError.class; + /** Exception class: NoClassDefFoundError. */ Class<NoClassDefFoundError> NO_CLASS_DEF_FOUND_ERROR = NoClassDefFoundError.class; + /** Exception class: UnsatisfiedLinkError. */ Class<UnsatisfiedLinkError> UNSATISFIED_LINK_ERROR = UnsatisfiedLinkError.class; + /** Exception class: VerifyError. */ Class<VerifyError> VERIFY_ERROR = VerifyError.class; /* UnsupportedClassVersionError is new in JDK 1.2 */ // Class UnsupportedClassVersionError = UnsupportedClassVersionError.class; /** - * Run-Time Exceptions + * Run-Time Exceptions. */ + /** Exception class: NullPointerException. */ Class<NullPointerException> NULL_POINTER_EXCEPTION = NullPointerException.class; + /** Exception class: ArrayIndexOutOfBoundsException. */ Class<ArrayIndexOutOfBoundsException> ARRAY_INDEX_OUT_OF_BOUNDS_EXCEPTION = ArrayIndexOutOfBoundsException.class; + /** Exception class: ArithmeticException. */ Class<ArithmeticException> ARITHMETIC_EXCEPTION = ArithmeticException.class; + /** Exception class: NegativeArraySizeException. */ Class<NegativeArraySizeException> NEGATIVE_ARRAY_SIZE_EXCEPTION = NegativeArraySizeException.class; + /** Exception class: ClassCastException. */ Class<ClassCastException> CLASS_CAST_EXCEPTION = ClassCastException.class; + /** Exception class: IllegalMonitorStateException. */ Class<IllegalMonitorStateException> ILLEGAL_MONITOR_STATE = IllegalMonitorStateException.class; /** - * Pre-defined exception arrays according to chapters 5.1-5.4 of the Java Virtual Machine Specification + * Pre-defined exception arrays according to chapters 5.1-5.4 of the Java Virtual Machine Specification. * - * @deprecated Do not use these arrays, use the static methods in the ExceptionConst implementation class instead + * @deprecated Do not use these arrays, use the static methods in the ExceptionConst implementation class instead. */ @Deprecated Class<?>[] EXCS_CLASS_AND_INTERFACE_RESOLUTION = {NO_CLASS_DEF_FOUND_ERROR, CLASS_FORMAT_ERROR, VERIFY_ERROR, ABSTRACT_METHOD_ERROR, EXCEPTION_IN_INITIALIZER_ERROR, ILLEGAL_ACCESS_ERROR}; // Chapter 5.1 + + /** Exception array for field and method resolution. @deprecated Do not use. */ @Deprecated Class<?>[] EXCS_FIELD_AND_METHOD_RESOLUTION = {NO_SUCH_FIELD_ERROR, ILLEGAL_ACCESS_ERROR, NO_SUCH_METHOD_ERROR}; // Chapter 5.2 @@ -91,7 +111,8 @@ public interface ExceptionConstants { */ @Deprecated Class<?>[] EXCS_STRING_RESOLUTION = new Class[0]; - // Chapter 5.4 (no errors but the ones that _always_ could happen! How stupid.) + + /** Exception array. @deprecated Do not use. */ @Deprecated Class<?>[] EXCS_ARRAY_EXCEPTION = {NULL_POINTER_EXCEPTION, ARRAY_INDEX_OUT_OF_BOUNDS_EXCEPTION};
