1.1 --- a/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java Tue Sep 07 17:31:54 2010 +0100 1.2 +++ b/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java Tue Sep 07 17:32:27 2010 +0100 1.3 @@ -1098,12 +1098,6 @@ 1.4 } 1.5 }, 1.6 1.7 - new AttributeReader(names.PolymorphicSignature, V45_3/*S.B.V51*/, CLASS_OR_MEMBER_ATTRIBUTE) { 1.8 - void read(Symbol sym, int attrLen) { 1.9 - sym.flags_field |= POLYMORPHIC_SIGNATURE; 1.10 - } 1.11 - }, 1.12 - 1.13 1.14 // The following attributes for a Code attribute are not currently handled 1.15 // StackMapTable 1.16 @@ -1289,6 +1283,9 @@ 1.17 sym.flags_field |= PROPRIETARY; 1.18 else 1.19 proxies.append(proxy); 1.20 + if (majorVersion >= V51.major && proxy.type.tsym == syms.polymorphicSignatureType.tsym) { 1.21 + sym.flags_field |= POLYMORPHIC_SIGNATURE; 1.22 + } 1.23 } 1.24 annotate.later(new AnnotationCompleter(sym, proxies.toList())); 1.25 }