src/share/classes/java/lang/reflect/Method.java

Print this page

        

*** 77,88 **** 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 --- 77,86 ----
*** 149,160 **** 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() { --- 147,156 ----
*** 165,175 **** byte[] getAnnotationBytes() { return annotations; } @Override byte[] getTypeAnnotationBytes() { ! return typeAnnotations; } /** * {@inheritDoc} */ --- 161,171 ---- byte[] getAnnotationBytes() { return annotations; } @Override byte[] getTypeAnnotationBytes() { ! return getTypeAnnotationBytes0(); } /** * {@inheritDoc} */