--- a/langtools/src/share/classes/com/sun/tools/javac/comp/MemberEnter.java Thu Jun 17 16:28:21 2010 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/MemberEnter.java Fri Jun 18 15:12:04 2010 -0700
@@ -768,6 +768,12 @@
&& s.owner.kind != MTH
&& types.isSameType(c.type, syms.deprecatedType))
s.flags_field |= Flags.DEPRECATED;
+ // Internally to java.dyn, a @PolymorphicSignature annotation
+ // translates to a classfile attribute.
+ if (!c.type.isErroneous()
+ && types.isSameType(c.type, syms.polymorphicSignatureType)) {
+ s.flags_field |= Flags.POLYMORPHIC_SIGNATURE;
+ }
if (!annotated.add(a.type.tsym))
log.error(a.pos, "duplicate.annotation");
}