From 075cbd1012cc205f3b604cc9b445b39153f96537 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Jul 2021 05:00:28 -0700 Subject: [PATCH] JDK-15 --- .../bytecode/club/bytecodeviewer/util/SecurityMan.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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;