8151858: update ASM 5.1 to accept V53.0 classfiles

Reviewed-by: forax, sundar
This commit is contained in:
Kumar Srinivasan 2016-03-15 06:53:45 -07:00
parent 99bfb14042
commit 27c0bb6266
2 changed files with 2 additions and 1 deletions

View File

@ -195,7 +195,7 @@ public class ClassReader {
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

View File

@ -87,6 +87,7 @@ public interface Opcodes {
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