Upgrade to ASM 7.2

Closes gh-23156
This commit is contained in:
Juergen Hoeller 2019-07-05 16:24:45 +02:00
parent 2abff1a5b0
commit 6990504d17
3 changed files with 5 additions and 1 deletions

View File

@ -190,7 +190,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.V13) {
if (checkClassVersion && readShort(classFileOffset + 6) > Opcodes.V14) {
throw new IllegalArgumentException(
"Unsupported class file major version " + readShort(classFileOffset + 6));
}

View File

@ -775,6 +775,9 @@ final class MethodWriter extends MethodVisitor {
}
visitFrameEnd();
} else {
if (symbolTable.getMajorVersion() < Opcodes.V1_6) {
throw new IllegalArgumentException("Class versions V1_5 or less must use F_NEW frames.");
}
int offsetDelta;
if (stackMapTableEntries == null) {
stackMapTableEntries = new ByteVector();

View File

@ -269,6 +269,7 @@ public interface Opcodes {
int V11 = 0 << 16 | 55;
int V12 = 0 << 16 | 56;
int V13 = 0 << 16 | 57;
int V14 = 0 << 16 | 58;
/**
* Version flag indicating that the class is using 'preview' features.