зеркало из https://github.com/mozilla/pjs.git
8635d8f06a
Subject: another getClassLoader exception Date: Tue, 12 Oct 1999 10:39:26 -0400 From: Andrew Wason <aw@softcom.com> To: norris@netscape.com (Norris Boyd) CC: Howard Lin <howard@softcom.com> Norris, It looks like the classes the optimizer generates call ScriptRuntime.defineFunction which calls getClassLoader. This throws a SecurityException. java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader ) at java.security.AccessControlContext.checkPermission(AccessControlContext.java , Compiled Code) at java.security.AccessController.checkPermission(AccessController.java, Compiled Code) at java.lang.SecurityManager.checkPermission(SecurityManager.java, Compiled Code) at java.lang.Class.getClassLoader(Class.java, Compiled Code) at org.mozilla.javascript.ScriptRuntime.defineFunction(ScriptRuntime.java:2045) at org.mozilla.javascript.gen.c5.initScript(order.js) at org.mozilla.javascript.gen.c5.exec(order.js) at org.mozilla.javascript.Context.evaluateReader(Context.java:728) [...] Andrew -- Andrew Wason SoftCom, Inc. aw@softcom.com |
||
---|---|---|
.. | ||
examples | ||
macbuild | ||
org/mozilla | ||
src/org/mozilla | ||
toolsrc/org/mozilla/javascript/tools | ||
Makefile | ||
README.html | ||
manifest |
README.html
<html> <body> <h1> <span CLASS=LXRSHORTDESC> Rhino: JavaScript in Java<p> </span> </h1> <span CLASS=LXRLONGDESC> Rhino is an implementation of JavaScript in Java. Documentation can be found <a href="http://www.mozilla.org/js/rhino/rhino.html">here</a>. </span> </body> </html>