8044154: Nashorn : all tests failed with java.security.AccessControlException
Reviewed-by: attila, sundar
--- 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;
};