langtools/src/share/classes/com/sun/tools/javac/comp/MemberEnter.java
changeset 5736 ee0850472ca1
parent 4877 b642d21c9f74
child 5738 c24b113fe4ac
equal deleted inserted replaced
5371:ff9031a745d9 5736:ee0850472ca1
   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     }