< prev index next >
src/java.base/share/classes/java/lang/reflect/Executable.java
Print this page
@@ -54,15 +54,10 @@
* Accessor method to allow code sharing
*/
abstract byte[] getAnnotationBytes();
/**
- * Accessor method to allow code sharing
- */
- abstract Executable getRoot();
-
- /**
* Does the Executable have generic information.
*/
abstract boolean hasGenericInformation();
abstract ConstructorRepository getGenericInfo();
@@ -600,11 +595,11 @@
private Map<Class<? extends Annotation>, Annotation> declaredAnnotations() {
Map<Class<? extends Annotation>, Annotation> declAnnos;
if ((declAnnos = declaredAnnotations) == null) {
synchronized (this) {
if ((declAnnos = declaredAnnotations) == null) {
- Executable root = getRoot();
+ Executable root = (Executable)getRoot();
if (root != null) {
declAnnos = root.declaredAnnotations();
} else {
declAnnos = AnnotationParser.parseAnnotations(
getAnnotationBytes(),
< prev index next >