8043132: Nashorn : all tests failed with java.security.AccessControlException
Reviewed-by: jlaskey, attila
--- a/nashorn/make/build.xml Wed Jul 05 19:40:19 2017 +0200
+++ b/nashorn/make/build.xml Wed May 14 19:01:05 2014 +0530
@@ -279,6 +279,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;
};