JDK-8050059 : syntax errors in src/windows/lib/security/java.policy after JDK-8043406
  • Type: Bug
  • Component: security-libs
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-07-11
  • Updated: 2014-07-14
  • Resolved: 2014-07-14
Related Reports
Duplicate :  
Description
JDK-8043406 introduced syntax errors in src/windows/lib/security/java.policy, missing ";" at the end of file src/windows/lib/security/java.policy 
Comments
I see this fixed via JDK-8050118, so closing this one.
14-07-2014

the file jdk/src/windows/lib/security/java.policy appears to be the problem it has the contents grant codeBase "file:${java.home}/lib/ext/sunmscapi.jar" { Permission java.lang.RuntimePermission "accessClassInPackage.sun.security.*"; permission java.lang.RuntimePermission "loadLibrary.sunmscapi"; permission java.util.PropertyPermission "*", "read"; permission java.security.SecurityPermission "putProviderProperty.SunMSCAPI"; permission java.security.SecurityPermission "clearProviderProperties.SunMSCAPI"; permission java.security.SecurityPermission "removeProviderProperty.SunMSCAPI"; } it's missing (semi-colon) ; to terminate the grant statement
11-07-2014

issue introduced by JDK-8043406, see below change: --- a/src/windows/lib/security/java.policy Thu Jul 10 12:40:48 2014 -0700 +++ b/src/windows/lib/security/java.policy Thu Jul 10 22:44:58 2014 +0000 @@ -1,3 +1,8 @@ grant codeBase "file:${java.home}/lib/ext/sunmscapi.jar" { - permission java.security.AllPermission; -}; + Permission java.lang.RuntimePermission "accessClassInPackage.sun.security.*"; + permission java.lang.RuntimePermission "loadLibrary.sunmscapi"; + permission java.util.PropertyPermission "*", "read"; + permission java.security.SecurityPermission "putProviderProperty.SunMSCAPI"; + permission java.security.SecurityPermission "clearProviderProperties.SunMSCAPI"; + permission java.security.SecurityPermission "removeProviderProperty.SunMSCAPI"; +} Moving to security-libs.
11-07-2014

Somehow the j2sdk-image/jre/lib/security/java.policy is invalid, missing ; $ cat workspace/jdk9-dev-build-win/build/windows-x86_64-normal-server-release/images/j2sdk-image/jre/lib/security/java.policy grant codeBase "file:${java.home}/lib/ext/sunmscapi.jar" { Permission java.lang.RuntimePermission "accessClassInPackage.sun.security.*"; permission java.lang.RuntimePermission "loadLibrary.sunmscapi"; permission java.util.PropertyPermission "*", "read"; permission java.security.SecurityPermission "putProviderProperty.SunMSCAPI"; permission java.security.SecurityPermission "clearProviderProperties.SunMSCAPI"; permission java.security.SecurityPermission "removeProviderProperty.SunMSCAPI"; } grant codeBase "file:${java.home}/lib/ext/jaccess.jar" { permission java.security.AllPermission; };
11-07-2014