< prev index next >
src/java.base/share/classes/java/lang/Class.java
Print this page
rev 50339 : 8203824: Chain exception from initialization in later NoClassDefFoundErrors.
*** 3846,3851 ****
--- 3846,3858 ----
* @since 1.8
*/
public AnnotatedType[] getAnnotatedInterfaces() {
return TypeAnnotationParser.buildAnnotatedInterfaces(getRawTypeAnnotations(), getConstantPool(), this);
}
+
+ // Field containing exception thrown during static class initialization.
+ // This is used to chain the original exception in later NoClassDefFoundErrors.
+ private transient Throwable exceptionThrownDuringClinit;
+ private void setExceptionThrownDuringClinit(Throwable throwable) {
+ exceptionThrownDuringClinit = throwable;
+ }
}
< prev index next >