JDK-15
This commit is contained in:
parent
6ef91b49b9
commit
075cbd1012
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue