OpenJDK / jdk / jdk12
changeset 26239:f38221b60b31
8055878: Nashorn: all tests failed with AccessControlException
Reviewed-by: sundar, hannesw
Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
author | yan |
---|---|
date | Mon, 25 Aug 2014 17:38:53 +0400 |
parents | 829648e12198 |
children | 4639082d6375 |
files | nashorn/make/build.xml |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nashorn/make/build.xml Fri Aug 22 22:50:38 2014 +0530 +++ b/nashorn/make/build.xml Mon Aug 25 17:38:53 2014 +0400 @@ -32,6 +32,9 @@ <property file="${user.home}/.nashorn.project.local.properties"/> <loadproperties srcFile="make/project.properties"/> + <path id="dist.path"> + <pathelement location="${dist.dir}"/> + </path> <path id="nashorn.ext.path"> <pathelement location="${dist.dir}"/> <pathelement location="${java.ext.dirs}"/> @@ -295,7 +298,7 @@ <target name="generate-policy-file" depends="prepare"> <echo file="${build.dir}/nashorn.policy"> -grant codeBase "file:/${toString:nashorn.ext.path}/nashorn.jar" { +grant codeBase "file:/${toString:dist.path}/nashorn.jar" { permission java.security.AllPermission; };