--- a/jdk/src/share/classes/sun/misc/JavaLangAccess.java Wed Oct 23 15:37:40 2013 +0400
+++ b/jdk/src/share/classes/sun/misc/JavaLangAccess.java Thu Oct 24 18:52:13 2013 +0200
@@ -28,6 +28,7 @@
import java.lang.annotation.Annotation;
import java.lang.reflect.Executable;
import java.security.AccessControlContext;
+import java.util.Map;
import sun.reflect.ConstantPool;
import sun.reflect.annotation.AnnotationType;
@@ -50,6 +51,11 @@
AnnotationType getAnnotationType(Class<?> klass);
/**
+ * Get the declared annotations for a given class, indexed by their types.
+ */
+ Map<Class<? extends Annotation>, Annotation> getDeclaredAnnotationMap(Class<?> klass);
+
+ /**
* Get the array of bytes that is the class-file representation
* of this Class' annotations.
*/