8151858: update ASM 5.1 to accept V53.0 classfiles
authorksrini
Tue, 15 Mar 2016 06:53:45 -0700
changeset 36636 6ec592dad606
parent 36635 f0147be2f50f
child 36637 ee1538b62f5d
8151858: update ASM 5.1 to accept V53.0 classfiles Reviewed-by: forax, sundar
jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java
jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/Opcodes.java
--- a/jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java	Tue Mar 01 12:33:04 2016 -0800
+++ b/jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/ClassReader.java	Tue Mar 15 06:53:45 2016 -0700
@@ -195,7 +195,7 @@
     public ClassReader(final byte[] b, final int off, final int len) {
         this.b = b;
         // checks the class version
-        if (readShort(off + 6) > Opcodes.V1_8) {
+        if (readShort(off + 6) > Opcodes.V1_9) {
             throw new IllegalArgumentException();
         }
         // parses the constant pool
--- a/jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/Opcodes.java	Tue Mar 01 12:33:04 2016 -0800
+++ b/jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/Opcodes.java	Tue Mar 15 06:53:45 2016 -0700
@@ -87,6 +87,7 @@
     int V1_6 = 0 << 16 | 50;
     int V1_7 = 0 << 16 | 51;
     int V1_8 = 0 << 16 | 52;
+    int V1_9 = 0 << 16 | 53;
 
     // access flags