Skip to content

Commit 5b6abe4

Browse files
committed
Upgrade to ASM 9.8 (for early Java 25 support)
Closes gh-34600
1 parent 7a839e9 commit 5b6abe4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

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

+1-1
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.V24) {
198+
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V25) {
199199
throw new IllegalArgumentException(
200200
"Unsupported class file major version " + readShort(classFileOffset + 6));
201201
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ public void visitTableSwitchInsn(
594594
* Visits a LOOKUPSWITCH instruction.
595595
*
596596
* @param dflt beginning of the default handler block.
597-
* @param keys the values of the keys.
597+
* @param keys the values of the keys. Keys must be sorted in increasing order.
598598
* @param labels beginnings of the handler blocks. {@code labels[i]} is the beginning of the
599599
* handler block for the {@code keys[i]} key.
600600
*/

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

+1
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ public interface Opcodes {
289289
int V22 = 0 << 16 | 66;
290290
int V23 = 0 << 16 | 67;
291291
int V24 = 0 << 16 | 68;
292+
int V25 = 0 << 16 | 69;
292293

293294
/**
294295
* Version flag indicating that the class is using 'preview' features.

0 commit comments

Comments
 (0)