X Tutup
Skip to content

Commit 84a3bda

Browse files
authored
Avoid using classpath
Clarifies the error message more, but still requires rt.jar.
1 parent 53ac26a commit 84a3bda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/javadeobfuscator/deobfuscator/transformers/special/BinscureTransformer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,8 @@ private void patchClass(Context context, ClassNode classNode)
11751175
});
11761176
else if(ain instanceof MethodInsnNode)
11771177
{
1178-
ClassNode cn = classpath.values().stream().filter(c -> c.name.equals(((MethodInsnNode)ain).owner)).findFirst().orElse(null);
1179-
if(cn == null)
1178+
ClassNode cn = classNodes().stream().filter(c -> c.name.equals(((MethodInsnNode)ain).owner)).findFirst().orElse(null);
1179+
if(cn == null && !((MethodInsnNode)ain).owner.startsWith("java/lang"))
11801180
context.customMethodFunc.put(ain, (list, ctx) -> {
11811181
throw new NoClassDefFoundError("Fake class");
11821182
});

0 commit comments

Comments
 (0)
X Tutup