--- old/src/java.base/share/classes/sun/reflect/annotation/AnnotationParser.java 2017-01-17 14:37:10.157601776 +0100 +++ new/src/java.base/share/classes/sun/reflect/annotation/AnnotationParser.java 2017-01-17 14:37:10.054601103 +0100 @@ -124,9 +124,9 @@ result.put(klass, a) != null) { throw new AnnotationFormatError( "Duplicate annotation for class: "+klass+": " + a); + } } } - } return result; } @@ -261,13 +261,7 @@ 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> memberTypes = type.memberTypes(); Map memberValues =