diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java index ef0e1e262ee..506aa5b3f55 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java @@ -2465,14 +2465,14 @@ private Type reannotate(T t, BiFunction f) { // Runtime-visible and -invisible annotations are completed separately, so if the same // type has annotations from both it will get annotated twice. TypeMetadata metadata = mapped.getMetadata(); - TypeMetadata.Annotations existing = - (TypeMetadata.Annotations) metadata.get(TypeMetadata.Entry.Kind.ANNOTATIONS); - if (existing != null) { - TypeMetadata.Annotations combined = new TypeMetadata.Annotations( - existing.getAnnotations().appendList(attributes)); - return mapped.cloneWithMetadata( - metadata.without(TypeMetadata.Entry.Kind.ANNOTATIONS).combine(combined)); - } + // TypeMetadata.Annotations existing = + // (TypeMetadata.Annotations) metadata.get(TypeMetadata.Entry.Kind.ANNOTATIONS); + // if (existing != null) { + // TypeMetadata.Annotations combined = new TypeMetadata.Annotations( + // existing.getAnnotations().appendList(attributes)); + // return mapped.cloneWithMetadata( + // metadata.without(TypeMetadata.Entry.Kind.ANNOTATIONS).combine(combined)); + // } return mapped.annotatedType(attributes); }