Re: Proper ClassLoader with ClassShutter

2016-03-21 Thread Tony Zakula
Thanks Sundar. I am not having any issues currently, all seems to be working great. We just added the ClassFilter so I had to change the constructor from: engine = new NashornScriptEngineFactory().getScriptEngine(new String[]{"-ccs=1000", "-ot=true", "-pcc=true"}); TO engine = new NashornScrip

Re: Proper ClassLoader with ClassShutter

2016-03-21 Thread Sundararajan Athijegannathan
By default Nashorn uses the thread context loader - which is usually ClassLoader.getSystemClassLoader() [ which is the launcher loader ]. So, your API call looks fine. What is the specific issue, if any, you've in mind? Thanks -Sundar On 3/20/2016 10:45 PM, Tony Zakula wrote: > Hey All, > > I a

Proper ClassLoader with ClassShutter

2016-03-20 Thread Tony Zakula
Hey All, I am using a ClassShutter to limit the Java classes scripts can use, but I am wondering how to use the proper ClassLoader in the constructor. The following seems to work fine, but is there a better way? Our initialization code looks like the following: // There is a bug on star