src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/ScriptObjectMirror.java
changeset 50878 fb7800b66c92
parent 47216 71c04702a3d5
equal deleted inserted replaced
50877:700fffd3c871 50878:fb7800b66c92
    56 import jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor;
    56 import jdk.nashorn.internal.runtime.linker.NashornCallSiteDescriptor;
    57 
    57 
    58 /**
    58 /**
    59  * Mirror object that wraps a given Nashorn Script object.
    59  * Mirror object that wraps a given Nashorn Script object.
    60  *
    60  *
       
    61  * @deprecated Nashorn JavaScript script engine and APIs, and the jjs tool
       
    62  * are deprecated with the intent to remove them in a future release.
       
    63  *
    61  * @since 1.8u40
    64  * @since 1.8u40
    62  */
    65  */
       
    66 @Deprecated(since="11", forRemoval=true)
    63 public final class ScriptObjectMirror extends AbstractJSObject implements Bindings {
    67 public final class ScriptObjectMirror extends AbstractJSObject implements Bindings {
    64     private static AccessControlContext getContextAccCtxt() {
    68     private static AccessControlContext getContextAccCtxt() {
    65         final Permissions perms = new Permissions();
    69         final Permissions perms = new Permissions();
    66         perms.add(new RuntimePermission(Context.NASHORN_GET_CONTEXT));
    70         perms.add(new RuntimePermission(Context.NASHORN_GET_CONTEXT));
    67         return new AccessControlContext(new ProtectionDomain[] { new ProtectionDomain(null, perms) });
    71         return new AccessControlContext(new ProtectionDomain[] { new ProtectionDomain(null, perms) });