Skip to content

Commit 0cc30ed

Browse files
authored
Update ClassReader.java
1 parent cbd789f commit 0cc30ed

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
@@ -201,7 +201,7 @@ public ClassReader(
201201
this.b = classFileBuffer;
202202
// Check the class' major_version. This field is after the magic and minor_version fields, which
203203
// use 4 and 2 bytes respectively.
204-
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V26) {
204+
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V31) {
205205
throw new IllegalArgumentException(
206206
"Unsupported class file major version " + readShort(classFileOffset + 6));
207207
}

0 commit comments

Comments
 (0)