src/java.base/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java
changeset 50892 a5557f24b4d4
parent 50735 2f2af62dfac7
child 52515 746df0ae4fe1
equal deleted inserted replaced
50891:9948ea5ea1af 50892:a5557f24b4d4
   183      *            the length of the class data.
   183      *            the length of the class data.
   184      */
   184      */
   185     public ClassReader(final byte[] b, final int off, final int len) {
   185     public ClassReader(final byte[] b, final int off, final int len) {
   186         this.b = b;
   186         this.b = b;
   187         // checks the class version
   187         // checks the class version
   188         if (readShort(off + 6) > Opcodes.V11) {
   188         if (readShort(off + 6) > Opcodes.V12) {
   189             throw new IllegalArgumentException();
   189             throw new IllegalArgumentException();
   190         }
   190         }
   191         // parses the constant pool
   191         // parses the constant pool
   192         items = new int[readUnsignedShort(off + 8)];
   192         items = new int[readUnsignedShort(off + 8)];
   193         int n = items.length;
   193         int n = items.length;