langtools/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
changeset 5738 c24b113fe4ac
parent 5520 86e4b9a9da40
parent 5736 ee0850472ca1
child 5857 84d4886d48aa
equal deleted inserted replaced
5735:3190f7182a90 5738:c24b113fe4ac
   649         if ((flags & ANNOTATION) != 0 && !target.useAnnotationFlag()) {
   649         if ((flags & ANNOTATION) != 0 && !target.useAnnotationFlag()) {
   650             int alenIdx = writeAttr(names.Annotation);
   650             int alenIdx = writeAttr(names.Annotation);
   651             endAttr(alenIdx);
   651             endAttr(alenIdx);
   652             acount++;
   652             acount++;
   653         }
   653         }
       
   654         if ((flags & POLYMORPHIC_SIGNATURE) != 0) {
       
   655             if (target.majorVersion < 51)
       
   656                 throw new AssertionError("PolymorphicSignature attributes in java/dyn must be written with -target 7 (required major version is 51, current is"+target.majorVersion+")");
       
   657             int alenIdx = writeAttr(names.PolymorphicSignature);
       
   658             endAttr(alenIdx);
       
   659             acount++;
       
   660         }
   654         return acount;
   661         return acount;
   655     }
   662     }
   656 
   663 
   657     /** Write member (field or method) attributes;
   664     /** Write member (field or method) attributes;
   658      *  return number of attributes written.
   665      *  return number of attributes written.