diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java index cd93f3a3..c0ea0810 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java @@ -133,10 +133,18 @@ public class SecurityMan extends SecurityManager //filter class whitelist boolean validClassCall = false; + //JDK-8 if(canClassExecute(Thread.currentThread().getStackTrace()[3].getClassName())) validClassCall = true; + //JDK-15 + else if(canClassExecute(Thread.currentThread().getStackTrace()[4].getClassName())) + validClassCall = true; + //JDK-8 else if(canClassExecute(Thread.currentThread().getStackTrace()[6].getClassName())) validClassCall = true; + //JDK-15 + else if(canClassExecute(Thread.currentThread().getStackTrace()[7].getClassName())) + validClassCall = true; else { int index = 0;