jdk/src/share/classes/sun/misc/JavaLangAccess.java
changeset 18827 ecbd9c8bef12
parent 17426 45db19517346
child 20831 96cf18811858
--- a/jdk/src/share/classes/sun/misc/JavaLangAccess.java	Sat Jul 13 08:47:49 2013 +0800
+++ b/jdk/src/share/classes/sun/misc/JavaLangAccess.java	Mon Jul 15 10:55:53 2013 +0200
@@ -36,10 +36,10 @@
     ConstantPool getConstantPool(Class<?> klass);
 
     /**
-     * Set the AnnotationType instance corresponding to this class.
+     * Compare-And-Swap the AnnotationType instance corresponding to this class.
      * (This method only applies to annotation types.)
      */
-    void setAnnotationType(Class<?> klass, AnnotationType annotationType);
+    boolean casAnnotationType(Class<?> klass, AnnotationType oldType, AnnotationType newType);
 
     /**
      * Get the AnnotationType instance corresponding to this class.
@@ -49,6 +49,12 @@
 
     /**
      * Get the array of bytes that is the class-file representation
+     * of this Class' annotations.
+     */
+    byte[] getRawClassAnnotations(Class<?> klass);
+
+    /**
+     * Get the array of bytes that is the class-file representation
      * of this Class' type annotations.
      */
     byte[] getRawClassTypeAnnotations(Class<?> klass);