--- old/src/share/classes/sun/reflect/annotation/AnnotationType.java 2013-11-02 21:46:31.247179949 +0100 +++ new/src/share/classes/sun/reflect/annotation/AnnotationType.java 2013-11-02 21:46:31.135181942 +0100 @@ -105,11 +105,13 @@ if (!annotationClass.isAnnotation()) throw new IllegalArgumentException("Not an annotation type"); + // Initialize memberTypes and defaultValues Method[] methods = AccessController.doPrivileged(new PrivilegedAction() { public Method[] run() { - // Initialize memberTypes and defaultValues - return annotationClass.getDeclaredMethods(); + Method[] methods = annotationClass.getDeclaredMethods(); + AccessibleObject.setAccessible(methods, true); + return methods; } });