src/java.base/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java
changeset 48081 89829dd3cc54
parent 47488 2af7932c2f6f
child 48355 4944950606ef
equal deleted inserted replaced
48080:18a4438eb690 48081:89829dd3cc54
   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.V9) {
   188         if (readShort(off + 6) > Opcodes.V10) {
   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;