src/share/classes/java/lang/reflect/Method.java
Print this page
@@ -77,12 +77,10 @@
private volatile MethodAccessor methodAccessor;
// For sharing of MethodAccessors. This branching structure is
// currently only two levels deep (i.e., one root Method and
// potentially many Method objects pointing to it.)
private Method root;
- // This is set by the vm at Method creation
- private byte[] typeAnnotations;
// Generics infrastructure
private String getGenericSignature() {return signature;}
// Accessor for factory
@@ -149,12 +147,10 @@
exceptionTypes, modifiers, slot, signature,
annotations, parameterAnnotations, annotationDefault);
res.root = this;
// Might as well eagerly propagate this if already present
res.methodAccessor = methodAccessor;
-
- res.typeAnnotations = typeAnnotations;
return res;
}
@Override
boolean hasGenericInformation() {
@@ -165,11 +161,11 @@
byte[] getAnnotationBytes() {
return annotations;
}
@Override
byte[] getTypeAnnotationBytes() {
- return typeAnnotations;
+ return getTypeAnnotationBytes0();
}
/**
* {@inheritDoc}
*/