Fixed some bugs

This commit is contained in:
SuspiciousActivity committed 2019-04-03 16:54:46 +02:00
1 parent d6b7aeec73
commit 97d06f974e
3 files changed
+6 -5

No files matched your search

+3 -3
View File
@@ -1524,7 +1524,7 @@ public class Assembler {
return new IntInsnNode(188, ClassUtil.getArrayIDByType(split[1]));
}
case "anewarray": {
return new TypeInsnNode(189, split[1]);
return new TypeInsnNode(189, UnicodeUtils.unescape(split[1]));
}
case "arraylength": {
return new InsnNode(190);
@@ -1533,10 +1533,10 @@ public class Assembler {
return new InsnNode(191);
}
case "checkcast": {
return new TypeInsnNode(192, split[1]);
return new TypeInsnNode(192, UnicodeUtils.unescape(split[1]));
}
case "instanceof": {
return new TypeInsnNode(193, split[1]);
return new TypeInsnNode(193, UnicodeUtils.unescape(split[1]));
}
case "monitorenter": {
return new InsnNode(194);
+2 -1
View File
@@ -12,7 +12,8 @@ public class ByteEditTreeNode extends DefaultMutableTreeNode {
public ByteEditTreeNode(String name, String path) {
this(name);
this.path = path;
if (name.endsWith(".class"))
this.path = path;
}
}
+1 -1
View File
@@ -832,7 +832,7 @@ public class Main extends JFrame {
while (enumeration.hasMoreElements()) {
JarEntry next = enumeration.nextElement();
byte[] data = IOUtils.toByteArray(jar.getInputStream(next));
if (next.getName().endsWith(".class")) {
if (!next.getName().startsWith("META-INF") && next.getName().endsWith(".class")) {
if (next.getName().contains("/")
? (!next.getName().split("/")[next.getName().split("/").length - 1].contains("$"))
: (!next.getName().contains("$"))) {