Skip to content

Commit 7c834d9

Browse files
committed
Upgrade to ASM master (including early support for Java 19 bytecode)
Closes gh-27740
1 parent 70974e0 commit 7c834d9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spring-core/src/main/java/org/springframework/asm/ClassReader.java

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

spring-core/src/main/java/org/springframework/asm/Opcodes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ public interface Opcodes {
283283
int V16 = 0 << 16 | 60;
284284
int V17 = 0 << 16 | 61;
285285
int V18 = 0 << 16 | 62;
286+
int V19 = 0 << 16 | 63;
286287

287288
/**
288289
* Version flag indicating that the class is using 'preview' features.

0 commit comments

Comments
 (0)