Skip to content

Commit c51ef90

Browse files
committed
tmp
1 parent 6a085a9 commit c51ef90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.util/src/com/oracle/svm/util/AnnotationUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ public static <T extends Annotation> T getAnnotation(Annotated element, Class<T>
110110
if (ImageInfo.inImageBuildtimeCode()) {
111111
return access().getAnnotation(element, annotationType);
112112
} else {
113-
return ((AnnotatedElement) element).getAnnotation(annotationType);
113+
throw new RuntimeException(String.format("%s, %s", element, annotationType));
114+
// return ((AnnotatedElement) element).getAnnotation(annotationType);
114115
}
115116
// Checkstyle: disallow direct annotation access
116117
}

0 commit comments

Comments
 (0)