From 884cefead9e4fede7243650afc4f22f08f8e5090 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Tue, 21 Mar 2023 16:32:19 +0100 Subject: feat: expanded ClassProxies, now all fields and methods include classproxies to represent their parents (as well as parameters and return type for methods) --- src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java | 7 +------ src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'src/main/java/ftbsc/lll/tools') diff --git a/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java b/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java index d23686d..479e651 100644 --- a/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java +++ b/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java @@ -17,11 +17,6 @@ public class FieldProxyInsnNode extends FieldInsnNode { * @param f a {@link FieldProxy} representing the field to call */ public FieldProxyInsnNode(int opcode, FieldProxy f) { - super( - opcode, - f.parent.replace('.', '/'), - f.name, - f.type.getDescriptor() - ); + super(opcode, f.parent.internalName, f.name, f.type.getDescriptor()); } } diff --git a/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java b/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java index 904615d..4fb3b89 100644 --- a/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java +++ b/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java @@ -18,11 +18,6 @@ public class MethodProxyInsnNode extends MethodInsnNode { * @param m a {@link MethodProxy} representing the method to call */ public MethodProxyInsnNode(int opcode, MethodProxy m) { - super( - opcode, - m.parent.replace('.', '/'), - m.name, - m.type.getDescriptor() - ); + super(opcode, m.parent.internalName, m.name, m.type.getDescriptor()); } } -- cgit v1.2.3-56-ga3b1