equal
deleted
inserted
replaced
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 } |