Skip to content

Commit 5650ed4

Browse files
authored
Update ClassReader.java
1 parent 3b7e684 commit 5650ed4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

asm/src/main/java/org/objectweb/asm/ClassReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public ClassReader(
195195
this.b = classFileBuffer;
196196
// Check the class' major_version. This field is after the magic and minor_version fields, which
197197
// use 4 and 2 bytes respectively.
198-
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V26) {
198+
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V31) {
199199
throw new IllegalArgumentException(
200200
"Unsupported class file major version " + readShort(classFileOffset + 6));
201201
}

0 commit comments

Comments
 (0)