jdk/src/share/classes/sun/misc/JavaLangAccess.java
changeset 21358 d41ff832d4f6
parent 20831 96cf18811858
child 21628 50fd58446d64
--- 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.
      */