Skip to content

Commit 550c2f4

Browse files
committed
Hotfix for SecurityMan not whitelisting JDA
1 parent ba08751 commit 550c2f4

File tree

4 files changed

+4
-219
lines changed

4 files changed

+4
-219
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>groupId</groupId>
88
<artifactId>jda</artifactId>
9-
<version>0.0.3-SNAPSHOT</version>
9+
<version>0.0.3.1-SNAPSHOT</version>
1010

1111
<repositories>
1212
<repository>

src/main/java/the/bytecode/club/jda/JDA.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
public class JDA
2525
{
2626
/*per version*/
27-
public static final String version = "0.0.3";
27+
public static final String version = "0.0.3.1";
2828
public static final boolean previewCopy = false;
2929
/* Constants */
3030
public static final String fs = System.getProperty("file.separator");
@@ -440,7 +440,6 @@ public static void resetWorkSpace(boolean ask)
440440
{
441441
files.clear();
442442
viewer.resetWorkspace();
443-
the.bytecode.club.jda.api.BytecodeViewer.getClassNodeLoader().clear();
444443
}
445444
else
446445
{
@@ -459,7 +458,6 @@ public static void resetWorkSpace(boolean ask)
459458
{
460459
files.clear();
461460
viewer.resetWorkspace();
462-
the.bytecode.club.jda.api.BytecodeViewer.getClassNodeLoader().clear();
463461
}
464462
}
465463
}

src/main/java/the/bytecode/club/jda/SecurityMan.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public void stopBlocking()
2424
if (executedClass.equals("CFRDecompiler") ||
2525
executedClass.equals("ProcyonDecompiler") ||
2626
executedClass.equals("FernFlowerDecompiler") ||
27-
executedClass.equals("JDA"))
27+
executedClass.equals("the.bytecode.club.jda.JDA"))
2828
{
2929
blocking = false;
3030
}
3131
else
3232
for (StackTraceElement stackTraceElements : Thread.currentThread().getStackTrace())
3333
{
34-
System.out.println(stackTraceElements.getClassName());
34+
System.out.println(stackTraceElements.getClassName() + " tried to disable security!");
3535
}
3636
}
3737

src/main/java/the/bytecode/club/jda/api/BytecodeViewer.java

Lines changed: 0 additions & 213 deletions
This file was deleted.

0 commit comments

Comments
 (0)