mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Keep ASM4 for backwards compatibility
This commit is contained in:
1 parent
055e3480de
commit
eb47513b44
4 files changed
+3
-7
No files matched your search
@@ -2,11 +2,7 @@ package codechicken.core.asm;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import codechicken.core.launch.CodeChickenCorePlugin;
|
||||
import com.google.common.collect.ImmutableBiMap;
|
||||
|
||||
import codechicken.lib.asm.ObfMapping;
|
||||
|
||||
@@ -101,7 +101,7 @@ public class DelegatedTransformer implements IClassTransformer
|
||||
private static void defineDependancies(byte[] bytes, JarFile jar, File jarFile, Stack<String> depStack) throws Exception
|
||||
{
|
||||
ClassReader reader = new ClassReader(bytes);
|
||||
DependancyLister lister = new DependancyLister(Opcodes.ASM5);
|
||||
DependancyLister lister = new DependancyLister(Opcodes.ASM4);
|
||||
reader.accept(lister, 0);
|
||||
|
||||
depStack.push(reader.getClassName());
|
||||
|
||||
@@ -76,7 +76,7 @@ public class DependancyLister extends ClassVisitor
|
||||
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
|
||||
{
|
||||
dependDesc(desc);
|
||||
return new DependancyMethodLister(Opcodes.ASM5);
|
||||
return new DependancyMethodLister(Opcodes.ASM4);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -22,7 +22,7 @@ public class MethodASMifier extends ClassVisitor
|
||||
Printer asmifier;
|
||||
|
||||
public MethodASMifier(ObfMapping method, Printer printer, PrintWriter printWriter) {
|
||||
super(ASM5);
|
||||
super(ASM4);
|
||||
this.method = method;
|
||||
this.printWriter = printWriter;
|
||||
asmifier = printer;
|
||||
|
||||
Reference in new issue
Block a user