8134456: jdk/test/java/lang/SecurityManager/CheckPackageAccess.java failing on several platforms

Add new restricted packages to the test code

Reviewed-by: mullan, mchung
This commit is contained in:
Peter Brunet 2015-08-27 22:35:24 -05:00 committed by Pete Brunet
parent dc85decead
commit 1dbf8f4761

View File

@ -77,7 +77,8 @@ final class RestrictedPackages {
"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 @@ final class RestrictedPackages {
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;
}