8134456: jdk/test/java/lang/SecurityManager/CheckPackageAccess.java failing on several platforms
authorptbrunet
Thu, 27 Aug 2015 22:35:24 -0500
changeset 32308 d6e71f67a221
parent 32307 7a3c84a74b56
child 32309 0920bafa1404
8134456: jdk/test/java/lang/SecurityManager/CheckPackageAccess.java failing on several platforms Summary: Add new restricted packages to the test code Reviewed-by: mullan, mchung Contributed-by: peter.brunet@oracle.com
jdk/test/java/lang/SecurityManager/RestrictedPackages.java
--- a/jdk/test/java/lang/SecurityManager/RestrictedPackages.java	Thu Aug 27 18:12:45 2015 -0700
+++ b/jdk/test/java/lang/SecurityManager/RestrictedPackages.java	Thu Aug 27 22:35:24 2015 -0500
@@ -77,7 +77,8 @@
         "jdk.nashorn.internal.",
         "jdk.nashorn.tools.",
         "jdk.tools.jimage.",
-        "com.sun.activation.registries."
+        "com.sun.activation.registries.",
+        "com.sun.java.accessibility.util.internal."
     };
 
     /*
@@ -126,6 +127,9 @@
         if (OS_NAME.contains("OS X")) {
             pkgs.add("apple.");  // add apple package for OS X
         }
+        if (OS_NAME.contains("Win")) {
+            pkgs.add("com.sun.java.accessibility.internal.");  // add Win only package
+        }
         return pkgs;
     }