< prev index next >

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

Print this page

        

*** 259,275 **** } 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; ! } Map<String, Class<?>> memberTypes = type.memberTypes(); Map<String, Object> memberValues = new LinkedHashMap<String, Object>(type.memberDefaults()); --- 259,269 ---- } if (selectAnnotationClasses != null && !contains(selectAnnotationClasses, annotationClass)) { 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 >