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
|
//filter class whitelist
|
||||||
boolean validClassCall = false;
|
boolean validClassCall = false;
|
||||||
|
//JDK-8
|
||||||
if(canClassExecute(Thread.currentThread().getStackTrace()[3].getClassName()))
|
if(canClassExecute(Thread.currentThread().getStackTrace()[3].getClassName()))
|
||||||
validClassCall = true;
|
validClassCall = true;
|
||||||
|
//JDK-15
|
||||||
|
else if(canClassExecute(Thread.currentThread().getStackTrace()[4].getClassName()))
|
||||||
|
validClassCall = true;
|
||||||
|
//JDK-8
|
||||||
else if(canClassExecute(Thread.currentThread().getStackTrace()[6].getClassName()))
|
else if(canClassExecute(Thread.currentThread().getStackTrace()[6].getClassName()))
|
||||||
validClassCall = true;
|
validClassCall = true;
|
||||||
|
//JDK-15
|
||||||
|
else if(canClassExecute(Thread.currentThread().getStackTrace()[7].getClassName()))
|
||||||
|
validClassCall = true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
Loading…
Reference in a new issue