Browse Source

Upgrade to ASM 9.8 (for early Java 25 support)

Closes gh-34600
pull/34656/head
Juergen Hoeller 9 months ago
parent
commit
5b6abe4c13
  1. 2
      spring-core/src/main/java/org/springframework/asm/ClassReader.java
  2. 2
      spring-core/src/main/java/org/springframework/asm/MethodVisitor.java
  3. 1
      spring-core/src/main/java/org/springframework/asm/Opcodes.java

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

@ -195,7 +195,7 @@ public class ClassReader { @@ -195,7 +195,7 @@ public class ClassReader {
this.b = classFileBuffer;
// Check the class' major_version. This field is after the magic and minor_version fields, which
// use 4 and 2 bytes respectively.
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V24) {
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V25) {
throw new IllegalArgumentException(
"Unsupported class file major version " + readShort(classFileOffset + 6));
}

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

@ -594,7 +594,7 @@ public abstract class MethodVisitor { @@ -594,7 +594,7 @@ public abstract class MethodVisitor {
* Visits a LOOKUPSWITCH instruction.
*
* @param dflt beginning of the default handler block.
* @param keys the values of the keys.
* @param keys the values of the keys. Keys must be sorted in increasing order.
* @param labels beginnings of the handler blocks. {@code labels[i]} is the beginning of the
* handler block for the {@code keys[i]} key.
*/

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

@ -289,6 +289,7 @@ public interface Opcodes { @@ -289,6 +289,7 @@ public interface Opcodes {
int V22 = 0 << 16 | 66;
int V23 = 0 << 16 | 67;
int V24 = 0 << 16 | 68;
int V25 = 0 << 16 | 69;
/**
* Version flag indicating that the class is using 'preview' features.

Loading…
Cancel
Save