8044154: Nashorn : all tests failed with java.security.AccessControlException
authormnunez
Wed, 14 May 2014 15:50:04 +0200
changeset 24756 0c15d49a19cc
parent 24755 bfdb1b8f7ff2
child 24757 f5e65b565230
8044154: Nashorn : all tests failed with java.security.AccessControlException Reviewed-by: attila, sundar
nashorn/make/build.xml
--- a/nashorn/make/build.xml	Wed May 14 16:29:14 2014 +0200
+++ b/nashorn/make/build.xml	Wed May 14 15:50:04 2014 +0200
@@ -276,6 +276,10 @@
   <target name="generate-policy-file" depends="prepare">
     <echo file="${build.dir}/nashorn.policy">
 
+grant codeBase "file:/${toString:nashorn.ext.path}/nashorn.jar" {
+    permission java.security.AllPermission;
+};
+
 grant codeBase "file:/${basedir}/${nashorn.internal.tests.jar}" {
     permission java.security.AllPermission;
 };