diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-21 16:32:19 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-21 16:32:19 +0100 |
commit | 884cefead9e4fede7243650afc4f22f08f8e5090 (patch) | |
tree | 9a63d0638238f67ef6d3ed3379a0c63c76e03e75 /src/main/java/ftbsc/lll/tools | |
parent | 40686b8c929279bd486529fceae1d8dd7fa2735f (diff) |
feat: expanded ClassProxies, now all fields and methods include classproxies to represent their parents (as well as parameters and return type for methods)
Diffstat (limited to 'src/main/java/ftbsc/lll/tools')
-rw-r--r-- | src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java | 7 | ||||
-rw-r--r-- | src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java | 7 |
2 files changed, 2 insertions, 12 deletions
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()); } } |