--- old/src/share/classes/sun/misc/JavaLangAccess.java 2013-07-05 10:11:28.133826298 +0200 +++ new/src/share/classes/sun/misc/JavaLangAccess.java 2013-07-05 10:11:28.018828289 +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);