hg: nashorn/jdk8/nashorn: 8007004: nashorn script engine should not use thread context class loader as script 'application loader'
Bryan Atsatt
bryan.atsatt at oracle.com
Mon Jan 28 13:29:06 PST 2013
There needs to be some way to control the loader used here, this change
will break us. This change requires that a SecurityManager is installed
in order to get the caller's loader, but that will be a rare condition
(:^). Even if that restriction was removed, this still wouldn't work for
our project: we need to be able to specify a loader other than our own
(a child).
With the current code, we simply set the TCL and everything works fine.
If that needs to change for some reason, can you please find another way
for us to pass the loader?
// Bryan
On 1/28/2013 7:59 AM, sundararajan.athijegannathan at oracle.com wrote:
> Changeset: 265c46dbcf43
> Author: sundar
> Date: 2013-01-28 21:29 +0530
> URL: http://hg.openjdk.java.net/nashorn/jdk8/nashorn/rev/265c46dbcf43
>
> 8007004: nashorn script engine should not use thread context class loader as script 'application loader'
> Reviewed-by: attila, hannesw
>
> ! src/jdk/nashorn/api/scripting/NashornScriptEngine.java
> ! src/jdk/nashorn/api/scripting/NashornScriptEngineFactory.java
>
>
More information about the nashorn-dev
mailing list