src/share/classes/sun/misc/JavaLangAccess.java

Print this page

        

*** 34,56 **** public interface JavaLangAccess { /** Return the constant pool for a class. */ ConstantPool getConstantPool(Class<?> klass); /** ! * Set the AnnotationType instance corresponding to this class. * (This method only applies to annotation types.) */ ! void setAnnotationType(Class<?> klass, AnnotationType annotationType); /** * Get the AnnotationType instance corresponding to this class. * (This method only applies to annotation types.) */ AnnotationType getAnnotationType(Class<?> klass); /** * Get the array of bytes that is the class-file representation * of this Class' type annotations. */ byte[] getRawClassTypeAnnotations(Class<?> klass); /** --- 34,62 ---- public interface JavaLangAccess { /** Return the constant pool for a class. */ ConstantPool getConstantPool(Class<?> klass); /** ! * Compare-And-Swap the AnnotationType instance corresponding to this class. * (This method only applies to annotation types.) */ ! boolean casAnnotationType(Class<?> klass, AnnotationType oldType, AnnotationType newType); /** * Get the AnnotationType instance corresponding to this class. * (This method only applies to annotation types.) */ AnnotationType getAnnotationType(Class<?> klass); /** * 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); /**