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

Print this page

        

*** 29,51 **** import sun.reflect.annotation.AnnotationType; import sun.nio.ch.Interruptible; 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); /** * Returns the elements of an enum class or null if the * Class object does not represent an enum type; * the result is uncloned, cached, and shared by all callers. --- 29,51 ---- import sun.reflect.annotation.AnnotationType; import sun.nio.ch.Interruptible; 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); /** * Returns the elements of an enum class or null if the * Class object does not represent an enum type; * the result is uncloned, cached, and shared by all callers.