src/share/classes/com/sun/tools/javac/comp/MemberEnter.java

changeset 573
005bec70ca27
parent 554
9d9f26857129
parent 571
f0e3ec1f9d9f
child 591
d1d7595fa824
equal deleted inserted replaced
570:ab1356297c67 573:005bec70ca27
766 // Note: @Deprecated has no effect on local variables and parameters 766 // Note: @Deprecated has no effect on local variables and parameters
767 if (!c.type.isErroneous() 767 if (!c.type.isErroneous()
768 && s.owner.kind != MTH 768 && s.owner.kind != MTH
769 && types.isSameType(c.type, syms.deprecatedType)) 769 && types.isSameType(c.type, syms.deprecatedType))
770 s.flags_field |= Flags.DEPRECATED; 770 s.flags_field |= Flags.DEPRECATED;
771 // Internally to java.dyn, a @PolymorphicSignature annotation
772 // translates to a classfile attribute.
773 if (!c.type.isErroneous()
774 && types.isSameType(c.type, syms.polymorphicSignatureType)) {
775 s.flags_field |= Flags.POLYMORPHIC_SIGNATURE;
776 }
771 if (!annotated.add(a.type.tsym)) 777 if (!annotated.add(a.type.tsym))
772 log.error(a.pos, "duplicate.annotation"); 778 log.error(a.pos, "duplicate.annotation");
773 } 779 }
774 s.attributes_field = buf.toList(); 780 s.attributes_field = buf.toList();
775 } 781 }

mercurial