提交 edf0343c 编写于 作者: J Juergen Hoeller

Upgrade to ASM master (including early support for Java 18 bytecode)

Closes gh-27069
上级 eb964542
...@@ -194,7 +194,7 @@ public class ClassReader { ...@@ -194,7 +194,7 @@ public class ClassReader {
this.b = classFileBuffer; this.b = classFileBuffer;
// Check the class' major_version. This field is after the magic and minor_version fields, which // Check the class' major_version. This field is after the magic and minor_version fields, which
// use 4 and 2 bytes respectively. // use 4 and 2 bytes respectively.
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V17) { if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V18) {
throw new IllegalArgumentException( throw new IllegalArgumentException(
"Unsupported class file major version " + readShort(classFileOffset + 6)); "Unsupported class file major version " + readShort(classFileOffset + 6));
} }
......
...@@ -30,8 +30,8 @@ package org.springframework.asm; ...@@ -30,8 +30,8 @@ package org.springframework.asm;
/** /**
* A visitor to visit a Java class. The methods of this class must be called in the following order: * A visitor to visit a Java class. The methods of this class must be called in the following order:
* {@code visit} [ {@code visitSource} ] [ {@code visitModule} ][ {@code visitNestHost} ][ {@code * {@code visit} [ {@code visitSource} ] [ {@code visitModule} ][ {@code visitNestHost} ][ {@code
* visitPermittedSubclass} ][ {@code visitOuterClass} ] ( {@code visitAnnotation} | {@code * visitOuterClass} ] ( {@code visitAnnotation} | {@code visitTypeAnnotation} | {@code
* visitTypeAnnotation} | {@code visitAttribute} )* ( {@code visitNestMember} | {@code * visitAttribute} )* ( {@code visitNestMember} | [ {@code * visitPermittedSubclass} ] | {@code
* visitInnerClass} | {@code visitRecordComponent} | {@code visitField} | {@code visitMethod} )* * visitInnerClass} | {@code visitRecordComponent} | {@code visitField} | {@code visitMethod} )*
* {@code visitEnd}. * {@code visitEnd}.
* *
......
...@@ -282,6 +282,7 @@ public interface Opcodes { ...@@ -282,6 +282,7 @@ public interface Opcodes {
int V15 = 0 << 16 | 59; int V15 = 0 << 16 | 59;
int V16 = 0 << 16 | 60; int V16 = 0 << 16 | 60;
int V17 = 0 << 16 | 61; int V17 = 0 << 16 | 61;
int V18 = 0 << 16 | 62;
/** /**
* Version flag indicating that the class is using 'preview' features. * Version flag indicating that the class is using 'preview' features.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册