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
+5
-4
No files matched your search
@@ -1524,7 +1524,7 @@ public class Assembler {
|
|||||||
return new IntInsnNode(188, ClassUtil.getArrayIDByType(split[1]));
|
return new IntInsnNode(188, ClassUtil.getArrayIDByType(split[1]));
|
||||||
}
|
}
|
||||||
case "anewarray": {
|
case "anewarray": {
|
||||||
return new TypeInsnNode(189, split[1]);
|
return new TypeInsnNode(189, UnicodeUtils.unescape(split[1]));
|
||||||
}
|
}
|
||||||
case "arraylength": {
|
case "arraylength": {
|
||||||
return new InsnNode(190);
|
return new InsnNode(190);
|
||||||
@@ -1533,10 +1533,10 @@ public class Assembler {
|
|||||||
return new InsnNode(191);
|
return new InsnNode(191);
|
||||||
}
|
}
|
||||||
case "checkcast": {
|
case "checkcast": {
|
||||||
return new TypeInsnNode(192, split[1]);
|
return new TypeInsnNode(192, UnicodeUtils.unescape(split[1]));
|
||||||
}
|
}
|
||||||
case "instanceof": {
|
case "instanceof": {
|
||||||
return new TypeInsnNode(193, split[1]);
|
return new TypeInsnNode(193, UnicodeUtils.unescape(split[1]));
|
||||||
}
|
}
|
||||||
case "monitorenter": {
|
case "monitorenter": {
|
||||||
return new InsnNode(194);
|
return new InsnNode(194);
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ public class ByteEditTreeNode extends DefaultMutableTreeNode {
|
|||||||
|
|
||||||
public ByteEditTreeNode(String name, String path) {
|
public ByteEditTreeNode(String name, String path) {
|
||||||
this(name);
|
this(name);
|
||||||
|
if (name.endsWith(".class"))
|
||||||
this.path = path;
|
this.path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -832,7 +832,7 @@ public class Main extends JFrame {
|
|||||||
while (enumeration.hasMoreElements()) {
|
while (enumeration.hasMoreElements()) {
|
||||||
JarEntry next = enumeration.nextElement();
|
JarEntry next = enumeration.nextElement();
|
||||||
byte[] data = IOUtils.toByteArray(jar.getInputStream(next));
|
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("/")
|
if (next.getName().contains("/")
|
||||||
? (!next.getName().split("/")[next.getName().split("/").length - 1].contains("$"))
|
? (!next.getName().split("/")[next.getName().split("/").length - 1].contains("$"))
|
||||||
: (!next.getName().contains("$"))) {
|
: (!next.getName().contains("$"))) {
|
||||||
|
|||||||
Reference in new issue
Block a user