Enable running on default asm version and fix server startup

This commit is contained in:
Raven Szewczyk committed 2023-01-24 18:18:09 +00:00
1 parent aed9cab431
commit 3521ce98c5
2 files changed
+5 -2

No files matched your search

@@ -18,6 +18,9 @@ import org.objectweb.asm.tree.MethodNode;
*/
public class FixConstantPoolInterfaceMethodRefHelper {
public boolean transform(ClassNode node) {
if (System.getProperty("java.specification.version", "1.8").trim().startsWith("1.8")) {
return false;
}
if ((node.access & Opcodes.ACC_INTERFACE) == 0) {
return false;
}