< prev index next >

src/java.base/share/classes/sun/reflect/annotation/AnnotationParser.java

Print this page

        

@@ -259,17 +259,11 @@
         }
         if (selectAnnotationClasses != null && !contains(selectAnnotationClasses, annotationClass)) {
             skipAnnotation(buf, false);
             return null;
         }
-        AnnotationType type = null;
-        try {
-            type = AnnotationType.getInstance(annotationClass);
-        } catch (IllegalArgumentException e) {
-            skipAnnotation(buf, false);
-            return null;
-        }
+        AnnotationType type = AnnotationType.getInstance(annotationClass);
 
         Map<String, Class<?>> memberTypes = type.memberTypes();
         Map<String, Object> memberValues =
             new LinkedHashMap<String, Object>(type.memberDefaults());
 
< prev index next >