src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/ScriptObjectMirror.java
equal
deleted
inserted
replaced
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) }); |