src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java

changeset 573
005bec70ca27
parent 554
9d9f26857129
parent 571
f0e3ec1f9d9f
child 591
d1d7595fa824
     1.1 --- a/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java	Thu Jun 17 16:28:21 2010 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java	Fri Jun 18 15:12:04 2010 -0700
     1.3 @@ -651,6 +651,13 @@
     1.4              endAttr(alenIdx);
     1.5              acount++;
     1.6          }
     1.7 +        if ((flags & POLYMORPHIC_SIGNATURE) != 0) {
     1.8 +            if (target.majorVersion < 51)
     1.9 +                throw new AssertionError("PolymorphicSignature attributes in java/dyn must be written with -target 7 (required major version is 51, current is"+target.majorVersion+")");
    1.10 +            int alenIdx = writeAttr(names.PolymorphicSignature);
    1.11 +            endAttr(alenIdx);
    1.12 +            acount++;
    1.13 +        }
    1.14          return acount;
    1.15      }
    1.16  

mercurial