ASM 7.2 - Java 14

This commit is contained in:
modmuss50 committed 2019-10-11 21:03:13 +01:00
1 parent ed1a103051
commit 9581844f0c
3 files changed
+17 -4

No files matched your search

@@ -678,7 +678,20 @@ public final class MixinEnvironment implements ITokenProvider {
return JavaVersion.current() >= 13.0;
}
};
},
/**
* Java 14 and above
*/
JAVA_14(14, Opcodes.V14, LanguageFeature.METHODS_IN_INTERFACES | LanguageFeature.PRIVATE_METHODS_IN_INTERFACES
| LanguageFeature.NESTING | LanguageFeature.DYNAMIC_CONSTANTS) {
@Override
boolean isSupported() {
return JavaVersion.current() >= 14.0;
}
};
/**
* Bitmask values for language features supported
@@ -34,8 +34,8 @@ import org.objectweb.asm.tree.ClassNode;
public final class ASM {
@SuppressWarnings("deprecation")
private static final int[] EXPERIMENTAL_VERSIONS = { Opcodes.ASM7_EXPERIMENTAL };
private static final int[] SUPPORTED_VERSIONS = { Opcodes.ASM6, Opcodes.ASM5 };
private static final int[] EXPERIMENTAL_VERSIONS = { };
private static final int[] SUPPORTED_VERSIONS = { Opcodes.ASM6, Opcodes.ASM5, Opcodes.ASM7 };
public static final int API_VERSION = ASM.detectVersion();