src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/NashornScriptEngine.java

Print this page

        

*** 63,74 **** /** * JSR-223 compliant script engine for Nashorn. Instances are not created directly, but rather returned through * {@link NashornScriptEngineFactory#getScriptEngine()}. Note that this engine implements the {@link Compilable} and * {@link Invocable} interfaces, allowing for efficient precompilation and repeated execution of scripts. * @see NashornScriptEngineFactory */ ! public final class NashornScriptEngine extends AbstractScriptEngine implements Compilable, Invocable { /** * Key used to associate Nashorn global object mirror with arbitrary Bindings instance. */ public static final String NASHORN_GLOBAL = "nashorn.global"; --- 63,76 ---- /** * JSR-223 compliant script engine for Nashorn. Instances are not created directly, but rather returned through * {@link NashornScriptEngineFactory#getScriptEngine()}. Note that this engine implements the {@link Compilable} and * {@link Invocable} interfaces, allowing for efficient precompilation and repeated execution of scripts. * @see NashornScriptEngineFactory + * + * @since 1.8u40 */ ! @jdk.Exported public final class NashornScriptEngine extends AbstractScriptEngine implements Compilable, Invocable { /** * Key used to associate Nashorn global object mirror with arbitrary Bindings instance. */ public static final String NASHORN_GLOBAL = "nashorn.global";