mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Fixed some bugs
This commit is contained in:
1 parent
d6b7aeec73
commit
97d06f974e
3 files changed
+6
-5
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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("$"))) {
|
||||
|
||||
Reference in new issue
Block a user