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

changeset 571
f0e3ec1f9d9f
parent 489
4b4e282a3146
child 573
005bec70ca27
equal deleted inserted replaced
544:98cba5876cb5 571:f0e3ec1f9d9f
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