Skip to content

Commit

Permalink
Hotfix for SecurityMan not whitelisting JDA
Browse files Browse the repository at this point in the history
  • Loading branch information
rcx committed Jul 18, 2016
1 parent ba08751 commit 550c2f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 219 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>groupId</groupId>
<artifactId>jda</artifactId>
<version>0.0.3-SNAPSHOT</version>
<version>0.0.3.1-SNAPSHOT</version>

<repositories>
<repository>
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/the/bytecode/club/jda/JDA.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
public class JDA
{
/*per version*/
public static final String version = "0.0.3";
public static final String version = "0.0.3.1";
public static final boolean previewCopy = false;
/* Constants */
public static final String fs = System.getProperty("file.separator");
Expand Down Expand Up @@ -440,7 +440,6 @@ public static void resetWorkSpace(boolean ask)
{
files.clear();
viewer.resetWorkspace();
the.bytecode.club.jda.api.BytecodeViewer.getClassNodeLoader().clear();
}
else
{
Expand All @@ -459,7 +458,6 @@ public static void resetWorkSpace(boolean ask)
{
files.clear();
viewer.resetWorkspace();
the.bytecode.club.jda.api.BytecodeViewer.getClassNodeLoader().clear();
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/the/bytecode/club/jda/SecurityMan.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public void stopBlocking()
if (executedClass.equals("CFRDecompiler") ||
executedClass.equals("ProcyonDecompiler") ||
executedClass.equals("FernFlowerDecompiler") ||
executedClass.equals("JDA"))
executedClass.equals("the.bytecode.club.jda.JDA"))
{
blocking = false;
}
else
for (StackTraceElement stackTraceElements : Thread.currentThread().getStackTrace())
{
System.out.println(stackTraceElements.getClassName());
System.out.println(stackTraceElements.getClassName() + " tried to disable security!");
}
}

Expand Down
213 changes: 0 additions & 213 deletions src/main/java/the/bytecode/club/jda/api/BytecodeViewer.java

This file was deleted.

0 comments on commit 550c2f4

Please sign in to comment.