From 1a771d6825df3953134d07bd31d67eee61261cda Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:41 -0400 Subject: [PATCH 01/19] test for serviceability --- .../DcmdMBeanPermissionsTest.java | 2 +- .../Introspector/AnnotationSecurityTest.java | 2 +- .../remote/mandatory/loading/RMIDownloadTest.java | 8 ++++---- .../remote/mandatory/notif/NoPermToRemoveTest.java | 2 +- .../mandatory/notif/NotificationEmissionTest.java | 8 ++++---- .../subjectDelegation/SubjectDelegation2Test.java | 10 +++++----- .../subjectDelegation/SubjectDelegation3Test.java | 10 +++++----- .../PlatformMBeanProviderConstructorCheck.java | 1 + test/jdk/sun/tools/jstatd/JstatdTest.java | 1 + 9 files changed, 23 insertions(+), 21 deletions(-) diff --git a/test/jdk/com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java b/test/jdk/com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java index 545890f73476c..a7fa5ae303aad 100644 --- a/test/jdk/com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java +++ b/test/jdk/com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java @@ -30,7 +30,7 @@ * @modules java.logging * java.management * - * @run main/othervm DcmdMBeanPermissionsTest + * @run main/othervm -Djava.security.manager=allow DcmdMBeanPermissionsTest */ import java.lang.management.ManagementFactory; diff --git a/test/jdk/javax/management/Introspector/AnnotationSecurityTest.java b/test/jdk/javax/management/Introspector/AnnotationSecurityTest.java index 43b466fbdf644..f71427fd99430 100644 --- a/test/jdk/javax/management/Introspector/AnnotationSecurityTest.java +++ b/test/jdk/javax/management/Introspector/AnnotationSecurityTest.java @@ -35,7 +35,7 @@ * UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean * @run build AnnotationSecurityTest Described UnDescribed DescribedMBean * UnDescribedMBean SqeDescriptorKey DescribedMX DescribedMXBean - * @run main/othervm AnnotationSecurityTest + * @run main/othervm -Djava.security.manager=allow AnnotationSecurityTest */ // -Djava.security.debug=access,domain,policy diff --git a/test/jdk/javax/management/remote/mandatory/loading/RMIDownloadTest.java b/test/jdk/javax/management/remote/mandatory/loading/RMIDownloadTest.java index c757baeaaca57..d702a78ad7235 100644 --- a/test/jdk/javax/management/remote/mandatory/loading/RMIDownloadTest.java +++ b/test/jdk/javax/management/remote/mandatory/loading/RMIDownloadTest.java @@ -27,10 +27,10 @@ * @summary Check that class downloading is supported by RMI connector * @author Eamonn McManus * - * @run main RMIDownloadTest receive without - * @run main RMIDownloadTest send without - * @run main RMIDownloadTest receive with - * @run main RMIDownloadTest send with + * @run main/othervm -Djava.security.manager=allow RMIDownloadTest receive without + * @run main/othervm -Djava.security.manager=allow RMIDownloadTest send without + * @run main/othervm -Djava.security.manager=allow RMIDownloadTest receive with + * @run main/othervm -Djava.security.manager=allow RMIDownloadTest send with */ /* diff --git a/test/jdk/javax/management/remote/mandatory/notif/NoPermToRemoveTest.java b/test/jdk/javax/management/remote/mandatory/notif/NoPermToRemoveTest.java index 1af316f1b50ca..b965c72250fed 100644 --- a/test/jdk/javax/management/remote/mandatory/notif/NoPermToRemoveTest.java +++ b/test/jdk/javax/management/remote/mandatory/notif/NoPermToRemoveTest.java @@ -27,7 +27,7 @@ * @summary checks the behaviour of mbeanServerConnection.removeNotificationListener * operation when there is a exception thrown during removal * @modules java.management - * @run main NoPermToRemoveTest + * @run main/othervm -Djava.security.manager=allow NoPermToRemoveTest */ import java.lang.management.ManagementFactory; diff --git a/test/jdk/javax/management/remote/mandatory/notif/NotificationEmissionTest.java b/test/jdk/javax/management/remote/mandatory/notif/NotificationEmissionTest.java index a54030d4c3e6a..a4c5700585339 100644 --- a/test/jdk/javax/management/remote/mandatory/notif/NotificationEmissionTest.java +++ b/test/jdk/javax/management/remote/mandatory/notif/NotificationEmissionTest.java @@ -32,10 +32,10 @@ * @run clean NotificationEmissionTest * @run build NotificationEmissionTest * @run main NotificationEmissionTest 1 - * @run main NotificationEmissionTest 2 - * @run main NotificationEmissionTest 3 - * @run main NotificationEmissionTest 4 - * @run main NotificationEmissionTest 5 + * @run main/othervm -Djava.security.manager=allow NotificationEmissionTest 2 + * @run main/othervm -Djava.security.manager=allow NotificationEmissionTest 3 + * @run main/othervm -Djava.security.manager=allow NotificationEmissionTest 4 + * @run main/othervm -Djava.security.manager=allow NotificationEmissionTest 5 */ import java.io.File; diff --git a/test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation2Test.java b/test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation2Test.java index 4e03de3c10784..4eb0959578141 100644 --- a/test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation2Test.java +++ b/test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation2Test.java @@ -31,11 +31,11 @@ * java.management/com.sun.jmx.remote.security * @run clean SubjectDelegation2Test SimpleStandard SimpleStandardMBean * @run build SubjectDelegation2Test SimpleStandard SimpleStandardMBean - * @run main SubjectDelegation2Test policy21 ok - * @run main SubjectDelegation2Test policy22 ko - * @run main SubjectDelegation2Test policy23 ko - * @run main SubjectDelegation2Test policy24 ok - * @run main SubjectDelegation2Test policy25 ko + * @run main/othervm -Djava.security.manager=allow SubjectDelegation2Test policy21 ok + * @run main/othervm -Djava.security.manager=allow SubjectDelegation2Test policy22 ko + * @run main/othervm -Djava.security.manager=allow SubjectDelegation2Test policy23 ko + * @run main/othervm -Djava.security.manager=allow SubjectDelegation2Test policy24 ok + * @run main/othervm -Djava.security.manager=allow SubjectDelegation2Test policy25 ko */ import com.sun.jmx.remote.security.JMXPluggableAuthenticator; diff --git a/test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation3Test.java b/test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation3Test.java index b999c9ebdf550..aacd62f7f8245 100644 --- a/test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation3Test.java +++ b/test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation3Test.java @@ -32,11 +32,11 @@ * java.management/com.sun.jmx.remote.security * @run clean SubjectDelegation3Test SimpleStandard SimpleStandardMBean * @run build SubjectDelegation3Test SimpleStandard SimpleStandardMBean - * @run main SubjectDelegation3Test policy31 ok - * @run main SubjectDelegation3Test policy32 ko - * @run main SubjectDelegation3Test policy33 ko - * @run main SubjectDelegation3Test policy34 ok - * @run main SubjectDelegation3Test policy35 ko + * @run main/othervm -Djava.security.manager=allow SubjectDelegation3Test policy31 ok + * @run main/othervm -Djava.security.manager=allow SubjectDelegation3Test policy32 ko + * @run main/othervm -Djava.security.manager=allow SubjectDelegation3Test policy33 ko + * @run main/othervm -Djava.security.manager=allow SubjectDelegation3Test policy34 ok + * @run main/othervm -Djava.security.manager=allow SubjectDelegation3Test policy35 ko */ import com.sun.jmx.remote.security.JMXPluggableAuthenticator; diff --git a/test/jdk/sun/management/PlatformMBeanProviderConstructorCheck.java b/test/jdk/sun/management/PlatformMBeanProviderConstructorCheck.java index 0892e8a5a7f9b..b7b4edc8c9806 100644 --- a/test/jdk/sun/management/PlatformMBeanProviderConstructorCheck.java +++ b/test/jdk/sun/management/PlatformMBeanProviderConstructorCheck.java @@ -33,6 +33,7 @@ * @summary Check permission for PlatformMBeanProvider Constructor * @modules java.management/sun.management.spi * @author Shanliang Jiang + * @run main/othervm -Djava.security.manager=allow PlatformMBeanProviderConstructorCheck */ public class PlatformMBeanProviderConstructorCheck { public static void main(String[] args) throws Exception { diff --git a/test/jdk/sun/tools/jstatd/JstatdTest.java b/test/jdk/sun/tools/jstatd/JstatdTest.java index 56c86cbfa075f..c603ed1096c47 100644 --- a/test/jdk/sun/tools/jstatd/JstatdTest.java +++ b/test/jdk/sun/tools/jstatd/JstatdTest.java @@ -253,6 +253,7 @@ private void cleanUpThread(ProcessThread thread) throws Throwable { private String[] getJstatdCmd() throws Exception { JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jstatd"); launcher.addVMArg("-XX:+UsePerfData"); + launcher.addVMArg("-Djava.security.manager=allow"); String testSrc = System.getProperty("test.src"); File policy = new File(testSrc, "all.policy"); assertTrue(policy.exists() && policy.isFile(), From 647a92a0f112058a5777f450e5327bf208e55f08 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:41 -0400 Subject: [PATCH 02/19] test for hotspot-compiler --- test/hotspot/jtreg/compiler/exceptions/ExceptionInInit.java | 2 +- .../hotspot/jtreg/compiler/jvmci/SecurityRestrictionsTest.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/compiler/exceptions/ExceptionInInit.java b/test/hotspot/jtreg/compiler/exceptions/ExceptionInInit.java index 5538913005437..a9ca2954a010c 100644 --- a/test/hotspot/jtreg/compiler/exceptions/ExceptionInInit.java +++ b/test/hotspot/jtreg/compiler/exceptions/ExceptionInInit.java @@ -29,7 +29,7 @@ * @author Tom Rodriguez * * @modules java.rmi - * @run main compiler.exceptions.ExceptionInInit + * @run main/othervm -Djava.security.manager=allow compiler.exceptions.ExceptionInInit */ package compiler.exceptions; diff --git a/test/hotspot/jtreg/compiler/jvmci/SecurityRestrictionsTest.java b/test/hotspot/jtreg/compiler/jvmci/SecurityRestrictionsTest.java index d46f19025deeb..80c7d856836c7 100644 --- a/test/hotspot/jtreg/compiler/jvmci/SecurityRestrictionsTest.java +++ b/test/hotspot/jtreg/compiler/jvmci/SecurityRestrictionsTest.java @@ -36,14 +36,17 @@ * NO_SEC_MAN * @run main/othervm -XX:+UnlockExperimentalVMOptions * -XX:+EnableJVMCI + * -Djava.security.manager=allow * compiler.jvmci.SecurityRestrictionsTest * NO_PERM * @run main/othervm -XX:+UnlockExperimentalVMOptions * -XX:+EnableJVMCI + * -Djava.security.manager=allow * compiler.jvmci.SecurityRestrictionsTest * ALL_PERM * @run main/othervm -XX:+UnlockExperimentalVMOptions * -XX:+EnableJVMCI -XX:-UseJVMCICompiler + * -Djava.security.manager=allow * compiler.jvmci.SecurityRestrictionsTest * NO_JVMCI_ACCESS_PERM * @run main/othervm -XX:+UnlockExperimentalVMOptions From ef8be54d8a891d36fab342435f6b88f95142a239 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:42 -0400 Subject: [PATCH 03/19] test for i18n --- test/jdk/java/util/TimeZone/Bug6912560.java | 2 +- test/jdk/java/util/TimeZone/SetDefaultSecurityTest.java | 2 +- .../ResourceBundleControlProvider/UserDefaultControlTest.java | 2 +- test/jdk/sun/nio/cs/TestSJIS0213_SM.java | 1 + test/jdk/sun/nio/cs/TestStringCoding.java | 2 +- test/jdk/sun/nio/cs/TestStringCodingUTF8.java | 2 +- test/jdk/sun/util/locale/provider/Bug8152817.java | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/jdk/java/util/TimeZone/Bug6912560.java b/test/jdk/java/util/TimeZone/Bug6912560.java index d289e61158e33..524d754fd7d59 100644 --- a/test/jdk/java/util/TimeZone/Bug6912560.java +++ b/test/jdk/java/util/TimeZone/Bug6912560.java @@ -24,7 +24,7 @@ /* * @test * @bug 6912560 - * @run main/othervm Bug6912560 + * @run main/othervm -Djava.security.manager=allow Bug6912560 * @summary Make sure that file path canonicalization in * sun.util.calendar.ZoneInfoFile works with the default security * manager. diff --git a/test/jdk/java/util/TimeZone/SetDefaultSecurityTest.java b/test/jdk/java/util/TimeZone/SetDefaultSecurityTest.java index d87752adb0e2e..8bf97f129c77f 100644 --- a/test/jdk/java/util/TimeZone/SetDefaultSecurityTest.java +++ b/test/jdk/java/util/TimeZone/SetDefaultSecurityTest.java @@ -26,7 +26,7 @@ * @bug 8001029 * @summary Make sure that TimeZone.setDefault throws a SecurityException if the * security manager doesn't permit. - * @run main/othervm SetDefaultSecurityTest + * @run main/othervm -Djava.security.manager=allow SetDefaultSecurityTest */ import java.util.SimpleTimeZone; diff --git a/test/jdk/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.java b/test/jdk/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.java index 9f4ad590b9544..ff0a7954af471 100644 --- a/test/jdk/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.java +++ b/test/jdk/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.java @@ -28,7 +28,7 @@ * @build test/* * @build com.foo.UserControlProvider * @run main/othervm UserDefaultControlTest false - * @run main/othervm UserDefaultControlTest true + * @run main/othervm -Djava.security.manager=allow UserDefaultControlTest true */ import java.io.*; diff --git a/test/jdk/sun/nio/cs/TestSJIS0213_SM.java b/test/jdk/sun/nio/cs/TestSJIS0213_SM.java index fe85d4e4635b5..ef61fbc3382b6 100644 --- a/test/jdk/sun/nio/cs/TestSJIS0213_SM.java +++ b/test/jdk/sun/nio/cs/TestSJIS0213_SM.java @@ -25,6 +25,7 @@ * @bug 7152690 * @summary Initialize SJIS_0213 charset with SecurityManager enabled * @modules jdk.charsets + * @run main/othervm -Djava.security.manager=allow TestSJIS0213_SM */ public class TestSJIS0213_SM { public static void main(String[] args) throws Throwable { diff --git a/test/jdk/sun/nio/cs/TestStringCoding.java b/test/jdk/sun/nio/cs/TestStringCoding.java index 4dd85f490a310..efa7f75314f65 100644 --- a/test/jdk/sun/nio/cs/TestStringCoding.java +++ b/test/jdk/sun/nio/cs/TestStringCoding.java @@ -25,7 +25,7 @@ * @bug 6636323 6636319 7040220 7096080 7183053 8080248 8054307 * @summary Test if StringCoding and NIO result have the same de/encoding result * @modules java.base/sun.nio.cs - * @run main/othervm/timeout=2000 TestStringCoding + * @run main/othervm/timeout=2000 -Djava.security.manager=allow TestStringCoding * @key randomness */ diff --git a/test/jdk/sun/nio/cs/TestStringCodingUTF8.java b/test/jdk/sun/nio/cs/TestStringCodingUTF8.java index ad07f19a6a361..2468ccdfc7f08 100644 --- a/test/jdk/sun/nio/cs/TestStringCodingUTF8.java +++ b/test/jdk/sun/nio/cs/TestStringCodingUTF8.java @@ -24,7 +24,7 @@ /* @test @bug 7040220 8054307 @summary Test if StringCoding and NIO result have the same de/encoding result for UTF-8 - * @run main/othervm/timeout=2000 TestStringCodingUTF8 + * @run main/othervm/timeout=2000 -Djava.security.manager=allow TestStringCodingUTF8 * @key randomness */ diff --git a/test/jdk/sun/util/locale/provider/Bug8152817.java b/test/jdk/sun/util/locale/provider/Bug8152817.java index 14363a4a1dfdc..d08d671727647 100644 --- a/test/jdk/sun/util/locale/provider/Bug8152817.java +++ b/test/jdk/sun/util/locale/provider/Bug8152817.java @@ -27,7 +27,7 @@ * @summary Make sure that resource bundles in the jdk.localedata module are * loaded under a security manager. * @modules jdk.localedata - * @run main/othervm -Djava.locale.providers=COMPAT + * @run main/othervm -Djava.security.manager=allow -Djava.locale.providers=COMPAT * -Djava.security.debug=access,failure,codebase=jrt:/jdk.localedata Bug8152817 */ From 9ba6010b1672228042788c7b763b09fd63f67039 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:42 -0400 Subject: [PATCH 04/19] test for rmi --- .../checkPackageAccess/CheckPackageAccess.java | 2 +- .../downloadActivationGroup/DownloadActivationGroup.java | 1 + .../rmi/registry/classPathCodebase/ClassPathCodebase.java | 2 +- test/jdk/java/rmi/registry/readTest/CodebaseTest.java | 2 +- .../jdk/java/rmi/reliability/benchmark/bench/rmi/Main.java | 1 + .../DelegateBeforePermissionCheck.java | 2 +- .../activatable/UseCustomSocketFactory.java | 3 ++- .../useSocketFactory/registry/UseCustomSocketFactory.java | 3 ++- .../useSocketFactory/unicast/UseCustomSocketFactory.java | 3 ++- .../unreferencedContext/UnreferencedContext.java | 2 +- test/jdk/java/rmi/testlibrary/RMID.java | 3 +++ test/jdk/java/rmi/testlibrary/TestParams.java | 7 +++++-- .../jdk/sun/rmi/runtime/Log/checkLogging/CheckLogging.java | 2 +- .../tcp/disableMultiplexing/DisableMultiplexing.java | 2 +- 14 files changed, 23 insertions(+), 12 deletions(-) diff --git a/test/jdk/java/rmi/RMISecurityManager/checkPackageAccess/CheckPackageAccess.java b/test/jdk/java/rmi/RMISecurityManager/checkPackageAccess/CheckPackageAccess.java index 93d1ce8427db6..657e37f4ad3c9 100644 --- a/test/jdk/java/rmi/RMISecurityManager/checkPackageAccess/CheckPackageAccess.java +++ b/test/jdk/java/rmi/RMISecurityManager/checkPackageAccess/CheckPackageAccess.java @@ -31,7 +31,7 @@ * "accessClassInPackage.*"). * @author Peter Jones * - * @run main/othervm CheckPackageAccess + * @run main/othervm -Djava.security.manager=allow CheckPackageAccess */ import java.rmi.RMISecurityManager; diff --git a/test/jdk/java/rmi/activation/ActivationGroup/downloadActivationGroup/DownloadActivationGroup.java b/test/jdk/java/rmi/activation/ActivationGroup/downloadActivationGroup/DownloadActivationGroup.java index bfa12177eb00e..e1fbbc342723f 100644 --- a/test/jdk/java/rmi/activation/ActivationGroup/downloadActivationGroup/DownloadActivationGroup.java +++ b/test/jdk/java/rmi/activation/ActivationGroup/downloadActivationGroup/DownloadActivationGroup.java @@ -127,6 +127,7 @@ public static void main(String[] args) { rmid = RMID.createRMIDOnEphemeralPort(); String execPolicyOption = "-Dsun.rmi.activation.execPolicy=none"; rmid.addOptions(new String[] { execPolicyOption }); + rmid.addArguments(new String[] { "-C-Djava.security.manager=allow" }); rmid.start(); /* diff --git a/test/jdk/java/rmi/registry/classPathCodebase/ClassPathCodebase.java b/test/jdk/java/rmi/registry/classPathCodebase/ClassPathCodebase.java index f0acc02bcc62f..217010d2cf529 100644 --- a/test/jdk/java/rmi/registry/classPathCodebase/ClassPathCodebase.java +++ b/test/jdk/java/rmi/registry/classPathCodebase/ClassPathCodebase.java @@ -85,7 +85,7 @@ public static void main(String[] args) { File rmiregistryDir = new File(System.getProperty("user.dir", "."), importCodebase); rmiregistry = RegistryVM.createRegistryVMWithRunner("RMIRegistryRunner", - " -Denv.class.path=." + " -Denv.class.path=. -Djava.security.manager=allow" + " -Djava.rmi.server.codebase=" + exportCodebaseURL + " -Duser.dir=" + rmiregistryDir.getAbsolutePath()); rmiregistry.start(); diff --git a/test/jdk/java/rmi/registry/readTest/CodebaseTest.java b/test/jdk/java/rmi/registry/readTest/CodebaseTest.java index 453dfe75e229a..480bb8e6064d0 100644 --- a/test/jdk/java/rmi/registry/readTest/CodebaseTest.java +++ b/test/jdk/java/rmi/registry/readTest/CodebaseTest.java @@ -57,7 +57,7 @@ public static void main(String args[]) throws Exception { rmiregistryDir.mkdirs(); rmiregistry = RegistryVM.createRegistryVMWithRunner( "RMIRegistryRunner", - " -Djava.rmi.server.useCodebaseOnly=false" + " -Djava.rmi.server.useCodebaseOnly=false -Djava.security.manager=allow" + " -Duser.dir=" + rmiregistryDir.getAbsolutePath()); rmiregistry.start(); int port = rmiregistry.getPort(); diff --git a/test/jdk/java/rmi/reliability/benchmark/bench/rmi/Main.java b/test/jdk/java/rmi/reliability/benchmark/bench/rmi/Main.java index 4d8b22e17d428..8f997afca21dc 100644 --- a/test/jdk/java/rmi/reliability/benchmark/bench/rmi/Main.java +++ b/test/jdk/java/rmi/reliability/benchmark/bench/rmi/Main.java @@ -242,6 +242,7 @@ public static void main(String[] args) { clientProcessStr.add(classpath); } clientProcessStr.add("-Djava.security.policy=" + TEST_SRC_PATH + "policy.all"); + clientProcessStr.add("-Djava.security.manager=allow"); clientProcessStr.add("-Dtest.src=" + TEST_SRC_PATH); clientProcessStr.add("bench.rmi.Main"); //Client mode if (verbose) { diff --git a/test/jdk/java/rmi/server/RMIClassLoader/delegateBeforePermissionCheck/DelegateBeforePermissionCheck.java b/test/jdk/java/rmi/server/RMIClassLoader/delegateBeforePermissionCheck/DelegateBeforePermissionCheck.java index fa438cfeb6230..4c883c93362e0 100644 --- a/test/jdk/java/rmi/server/RMIClassLoader/delegateBeforePermissionCheck/DelegateBeforePermissionCheck.java +++ b/test/jdk/java/rmi/server/RMIClassLoader/delegateBeforePermissionCheck/DelegateBeforePermissionCheck.java @@ -38,7 +38,7 @@ * java.rmi/sun.rmi.transport * java.rmi/sun.rmi.transport.tcp * @build TestLibrary Foo - * @run main/othervm DelegateBeforePermissionCheck + * @run main/othervm -Djava.security.manager=allow DelegateBeforePermissionCheck */ import java.net.*; diff --git a/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/activatable/UseCustomSocketFactory.java b/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/activatable/UseCustomSocketFactory.java index 3509a3fbae5fd..68eaf8ee955e7 100644 --- a/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/activatable/UseCustomSocketFactory.java +++ b/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/activatable/UseCustomSocketFactory.java @@ -88,7 +88,8 @@ private static Echo[] spawnAndTest(int rmidPort) { for (int i = 0; i < protocol.length; i++) { JavaVM serverVM = new JavaVM("EchoImpl", - "-Djava.security.policy=" + + "-Djava.security.manager=allow" + + " -Djava.security.policy=" + TestParams.defaultPolicy + " -Drmi.registry.port=" + registryPort + diff --git a/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/registry/UseCustomSocketFactory.java b/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/registry/UseCustomSocketFactory.java index 0b6dc76a3b0c3..b200893434dbb 100644 --- a/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/registry/UseCustomSocketFactory.java +++ b/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/registry/UseCustomSocketFactory.java @@ -80,7 +80,8 @@ public static void main(String[] args) { } JavaVM serverVM = new JavaVM("HelloImpl", - "-Djava.security.policy=" + + "-Djava.security.manager=allow" + + " -Djava.security.policy=" + TestParams.defaultPolicy + " -Drmi.registry.port=" + registryPort, diff --git a/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/unicast/UseCustomSocketFactory.java b/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/unicast/UseCustomSocketFactory.java index 4df810af015fe..e3c02f2e7252f 100644 --- a/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/unicast/UseCustomSocketFactory.java +++ b/test/jdk/java/rmi/server/RMISocketFactory/useSocketFactory/unicast/UseCustomSocketFactory.java @@ -63,7 +63,8 @@ public static void main(String[] args) { for (String protocol : protocols) { System.err.println("test policy: " + TestParams.defaultPolicy); - JavaVM serverVM = new JavaVM("EchoImpl", "-Djava.security.policy=" + + JavaVM serverVM = new JavaVM("EchoImpl", + "-Djava.security.manager=allow -Djava.security.policy=" + TestParams.defaultPolicy + " -Drmi.registry.port=" + registryPort, protocol); diff --git a/test/jdk/java/rmi/server/Unreferenced/unreferencedContext/UnreferencedContext.java b/test/jdk/java/rmi/server/Unreferenced/unreferencedContext/UnreferencedContext.java index 2c4bb4d6b9f48..f1de500a9e213 100644 --- a/test/jdk/java/rmi/server/Unreferenced/unreferencedContext/UnreferencedContext.java +++ b/test/jdk/java/rmi/server/Unreferenced/unreferencedContext/UnreferencedContext.java @@ -44,7 +44,7 @@ * java.rmi/sun.rmi.transport * java.rmi/sun.rmi.transport.tcp * @build TestLibrary UnreferencedContext_Stub - * @run main/othervm/timeout=120 UnreferencedContext + * @run main/othervm/timeout=120 -Djava.security.manager=allow UnreferencedContext */ import java.net.*; diff --git a/test/jdk/java/rmi/testlibrary/RMID.java b/test/jdk/java/rmi/testlibrary/RMID.java index 26bb6288ce359..c87d25bc23489 100644 --- a/test/jdk/java/rmi/testlibrary/RMID.java +++ b/test/jdk/java/rmi/testlibrary/RMID.java @@ -335,6 +335,9 @@ public void start(long waitTime) throws IOException { // a well recognized exception (port already in use...). mesg("Starting rmid on port " + port + ", at " + LocalTime.now()); + if (!options.contains("-Djava.security.manager")) { + options += " -Djava.security.manager=allow"; + } int p = super.startAndGetPort(); if (p != -1) port = p; diff --git a/test/jdk/java/rmi/testlibrary/TestParams.java b/test/jdk/java/rmi/testlibrary/TestParams.java index 4b1f4d6e6e794..07baf57e5d3c2 100644 --- a/test/jdk/java/rmi/testlibrary/TestParams.java +++ b/test/jdk/java/rmi/testlibrary/TestParams.java @@ -78,8 +78,11 @@ public class TestParams { defaultGroupPolicy = testSrc + File.separatorChar + "group.security.policy"; - defaultSecurityManager = TestLibrary.getProperty( - "java.security.manager", "java.lang.SecurityManager"); + String tmp = TestLibrary.getProperty("java.security.manager", null); + if (tmp == null || tmp.equals("allow")) { + tmp = "java.lang.SecurityManager"; + } + defaultSecurityManager = tmp; testVmOpts = TestLibrary.getProperty("test.vm.opts", ""); diff --git a/test/jdk/sun/rmi/runtime/Log/checkLogging/CheckLogging.java b/test/jdk/sun/rmi/runtime/Log/checkLogging/CheckLogging.java index 2b3d2d5b808c0..b181c6996ef91 100644 --- a/test/jdk/sun/rmi/runtime/Log/checkLogging/CheckLogging.java +++ b/test/jdk/sun/rmi/runtime/Log/checkLogging/CheckLogging.java @@ -33,7 +33,7 @@ * java.rmi/sun.rmi.transport * java.rmi/sun.rmi.transport.tcp * @build TestLibrary - * @run main/othervm CheckLogging + * @run main/othervm -Djava.security.manager=allow CheckLogging */ import java.util.logging.Level; diff --git a/test/jdk/sun/rmi/transport/tcp/disableMultiplexing/DisableMultiplexing.java b/test/jdk/sun/rmi/transport/tcp/disableMultiplexing/DisableMultiplexing.java index a8510df5be119..4a8748ab25320 100644 --- a/test/jdk/sun/rmi/transport/tcp/disableMultiplexing/DisableMultiplexing.java +++ b/test/jdk/sun/rmi/transport/tcp/disableMultiplexing/DisableMultiplexing.java @@ -29,7 +29,7 @@ * @author Peter Jones * * @build DisableMultiplexing_Stub - * @run main/othervm DisableMultiplexing + * @run main/othervm -Djava.security.manager=allow DisableMultiplexing */ import java.rmi.*; From 5211cf8a301049777b9dc1c173de9e83a12b6ba6 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:43 -0400 Subject: [PATCH 05/19] test for javadoc --- test/langtools/tools/doclint/tool/RunTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/langtools/tools/doclint/tool/RunTest.java b/test/langtools/tools/doclint/tool/RunTest.java index 92d26895563b3..78415a9544186 100644 --- a/test/langtools/tools/doclint/tool/RunTest.java +++ b/test/langtools/tools/doclint/tool/RunTest.java @@ -27,6 +27,7 @@ * @summary Supplementary test cases needed for doclint * @modules jdk.javadoc/jdk.javadoc.internal.doclint * jdk.compiler/com.sun.tools.javac.api + * @run main/othervm -Djava.security.manager=allow RunTest */ import java.io.ByteArrayOutputStream; From 895e82e300ceb3b0bd67b605e43d39b8d368c379 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:44 -0400 Subject: [PATCH 06/19] test for swing --- .../com/sun/java/accessibility/util/8051626/Bug8051626.java | 2 +- .../swing/JComboBox/8080972/TestBasicComboBoxEditor.java | 3 ++- test/jdk/javax/swing/JEditorPane/5076514/bug5076514.java | 6 +++--- test/jdk/javax/swing/JEditorPane/8080972/TestJEditor.java | 4 ++-- test/jdk/javax/swing/JFileChooser/6484091/bug6484091.java | 4 ++-- test/jdk/javax/swing/JFileChooser/6570445/bug6570445.java | 3 ++- .../JFormattedTextField/8080972/TestDefaultFormatter.java | 3 ++- test/jdk/javax/swing/JOptionPane/8081019/bug8081019.java | 2 +- test/jdk/javax/swing/JPopupMenu/6675802/bug6675802.java | 4 ++-- test/jdk/javax/swing/JPopupMenu/6691503/bug6691503.java | 2 +- test/jdk/javax/swing/JPopupMenu/6694823/bug6694823.java | 2 +- .../javax/swing/JTable/8080972/TestJTableCellEditor.java | 4 +++- test/jdk/javax/swing/UIDefaults/6622002/bug6622002.java | 4 ++-- test/jdk/javax/swing/UIDefaults/6795356/TableTest.java | 4 ++-- .../javax/swing/UIDefaults/8080972/TestProxyLazyValue.java | 4 ++-- test/jdk/javax/swing/dnd/8080972/TestTransferHandler.java | 3 ++- .../plaf/nimbus/8080972/TestAbstractRegionPainter.java | 3 ++- test/jdk/javax/swing/plaf/synth/Test8043627.java | 3 ++- test/jdk/javax/swing/text/View/8080972/TestObjectView.java | 4 ++-- 19 files changed, 36 insertions(+), 28 deletions(-) diff --git a/test/jdk/com/sun/java/accessibility/util/8051626/Bug8051626.java b/test/jdk/com/sun/java/accessibility/util/8051626/Bug8051626.java index 4751d55ad6f9b..96f301d5ce52c 100644 --- a/test/jdk/com/sun/java/accessibility/util/8051626/Bug8051626.java +++ b/test/jdk/com/sun/java/accessibility/util/8051626/Bug8051626.java @@ -28,7 +28,7 @@ * @summary Ensure no failure when using Java Accessibility Utility with security manager * @modules java.desktop jdk.accessibility * - * @run main/othervm Bug8051626 + * @run main/othervm -Djava.security.manager=allow Bug8051626 */ import com.sun.java.accessibility.util.AWTEventMonitor; diff --git a/test/jdk/javax/swing/JComboBox/8080972/TestBasicComboBoxEditor.java b/test/jdk/javax/swing/JComboBox/8080972/TestBasicComboBoxEditor.java index 205aecc9d875f..2fb2391116a84 100644 --- a/test/jdk/javax/swing/JComboBox/8080972/TestBasicComboBoxEditor.java +++ b/test/jdk/javax/swing/JComboBox/8080972/TestBasicComboBoxEditor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -26,6 +26,7 @@ /* * @test * @bug 8080972 + * @run main/othervm -Djava.security.manager=allow TestBasicComboBoxEditor * @summary Audit Core Reflection in module java.desktop for places that will * require changes to work with modules * @author Alexander Scherbatiy diff --git a/test/jdk/javax/swing/JEditorPane/5076514/bug5076514.java b/test/jdk/javax/swing/JEditorPane/5076514/bug5076514.java index dab2e69a48d36..21ea57ab8d0c8 100644 --- a/test/jdk/javax/swing/JEditorPane/5076514/bug5076514.java +++ b/test/jdk/javax/swing/JEditorPane/5076514/bug5076514.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,8 +25,8 @@ @bug 5076514 8025430 8198321 @summary Tests if SecurityManager.checkPermission() used for clipboard access with permission 'accessClipboard' - @run main bug5076514 - @run main/othervm -Djava.awt.headless=true bug5076514 + @run main/othervm -Djava.security.manager=allow bug5076514 + @run main/othervm -Djava.security.manager=allow -Djava.awt.headless=true bug5076514 */ import java.awt.GraphicsEnvironment; diff --git a/test/jdk/javax/swing/JEditorPane/8080972/TestJEditor.java b/test/jdk/javax/swing/JEditorPane/8080972/TestJEditor.java index 6d9a396aa0cf2..6c3a0d80b2e73 100644 --- a/test/jdk/javax/swing/JEditorPane/8080972/TestJEditor.java +++ b/test/jdk/javax/swing/JEditorPane/8080972/TestJEditor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -40,7 +40,7 @@ * @summary Audit Core Reflection in module java.desktop for places that will * require changes to work with modules * @author Alexander Scherbatiy - * @run main/othervm TestJEditor + * @run main/othervm -Djava.security.manager=allow TestJEditor */ public class TestJEditor { diff --git a/test/jdk/javax/swing/JFileChooser/6484091/bug6484091.java b/test/jdk/javax/swing/JFileChooser/6484091/bug6484091.java index fa379d10fff9c..51cd8d040931f 100644 --- a/test/jdk/javax/swing/JFileChooser/6484091/bug6484091.java +++ b/test/jdk/javax/swing/JFileChooser/6484091/bug6484091.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,7 +25,7 @@ * @bug 6484091 * @summary FileSystemView leaks directory info * @author Pavel Porvatov - @run main bug6484091 + @run main/othervm -Djava.security.manager=allow bug6484091 */ import javax.swing.filechooser.FileSystemView; diff --git a/test/jdk/javax/swing/JFileChooser/6570445/bug6570445.java b/test/jdk/javax/swing/JFileChooser/6570445/bug6570445.java index 554c5a446098c..c5ed2b7365cd0 100644 --- a/test/jdk/javax/swing/JFileChooser/6570445/bug6570445.java +++ b/test/jdk/javax/swing/JFileChooser/6570445/bug6570445.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -24,6 +24,7 @@ /* * @test * @bug 6570445 + * @run main/othervm -Djava.security.manager=allow bug6570445 * @summary Checks if Win32ShellFolder2's COM-using methods work under a security manager * @author Leonid Popov */ diff --git a/test/jdk/javax/swing/JFormattedTextField/8080972/TestDefaultFormatter.java b/test/jdk/javax/swing/JFormattedTextField/8080972/TestDefaultFormatter.java index eabb0265c95f9..c912079f6e8c9 100644 --- a/test/jdk/javax/swing/JFormattedTextField/8080972/TestDefaultFormatter.java +++ b/test/jdk/javax/swing/JFormattedTextField/8080972/TestDefaultFormatter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -26,6 +26,7 @@ /* * @test * @bug 8080972 + * @run main/othervm -Djava.security.manager=allow TestDefaultFormatter * @summary Audit Core Reflection in module java.desktop for places that will * require changes to work with modules * @author Alexander Scherbatiy diff --git a/test/jdk/javax/swing/JOptionPane/8081019/bug8081019.java b/test/jdk/javax/swing/JOptionPane/8081019/bug8081019.java index 95e968d2a0cec..2e86cc34cdc05 100644 --- a/test/jdk/javax/swing/JOptionPane/8081019/bug8081019.java +++ b/test/jdk/javax/swing/JOptionPane/8081019/bug8081019.java @@ -68,7 +68,7 @@ private static void runTest() throws Exception { private static void runProcess() throws Exception { String javaPath = System.getProperty("java.home", ""); String command = javaPath + File.separator + "bin" + File.separator + "java" - + " " + bug8081019.class.getName() + " " + RUN_TEST; + + " -Djava.security.manager=allow " + bug8081019.class.getName() + " " + RUN_TEST; Process process = Runtime.getRuntime().exec(command); boolean processExit = process.waitFor(20, TimeUnit.SECONDS); diff --git a/test/jdk/javax/swing/JPopupMenu/6675802/bug6675802.java b/test/jdk/javax/swing/JPopupMenu/6675802/bug6675802.java index 5fa7c9eaeb923..849e1f82034ef 100644 --- a/test/jdk/javax/swing/JPopupMenu/6675802/bug6675802.java +++ b/test/jdk/javax/swing/JPopupMenu/6675802/bug6675802.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -27,7 +27,7 @@ * @summary Checks that there is no AccessControlException when * a heaviweight popup menu is shown from an applet. * @author Mikhail Lapshin - * @run main bug6675802 + * @run main/othervm -Djava.security.manager=allow bug6675802 */ import javax.swing.*; diff --git a/test/jdk/javax/swing/JPopupMenu/6691503/bug6691503.java b/test/jdk/javax/swing/JPopupMenu/6691503/bug6691503.java index f6f3d9746ac89..e8dc909084b9b 100644 --- a/test/jdk/javax/swing/JPopupMenu/6691503/bug6691503.java +++ b/test/jdk/javax/swing/JPopupMenu/6691503/bug6691503.java @@ -29,7 +29,7 @@ * to show a popup menu which has whole screen size. * a heaviweight popup menu is shown from an applet. * @author Mikhail Lapshin - * @run main bug6691503 + * @run main/othervm -Djava.security.manager=allow bug6691503 */ import javax.swing.*; diff --git a/test/jdk/javax/swing/JPopupMenu/6694823/bug6694823.java b/test/jdk/javax/swing/JPopupMenu/6694823/bug6694823.java index 949878e54eba0..8cded311045c3 100644 --- a/test/jdk/javax/swing/JPopupMenu/6694823/bug6694823.java +++ b/test/jdk/javax/swing/JPopupMenu/6694823/bug6694823.java @@ -28,7 +28,7 @@ * @summary Checks that popup menu cannot be partially hidden * by the task bar in applets. * @author Mikhail Lapshin - * @run main bug6694823 + * @run main/othervm -Djava.security.manager=allow bug6694823 */ import javax.swing.*; diff --git a/test/jdk/javax/swing/JTable/8080972/TestJTableCellEditor.java b/test/jdk/javax/swing/JTable/8080972/TestJTableCellEditor.java index 592044a4ea350..e6ad98ba9279c 100644 --- a/test/jdk/javax/swing/JTable/8080972/TestJTableCellEditor.java +++ b/test/jdk/javax/swing/JTable/8080972/TestJTableCellEditor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -27,6 +27,8 @@ /* * @test * @bug 8080972 + * @run main/othervm -Djava.security.manager=allow TestJTableCellEditor + * @summary Audit Core Reflection in module java.desktop for places that will * require changes to work with modules * @author Alexander Scherbatiy diff --git a/test/jdk/javax/swing/UIDefaults/6622002/bug6622002.java b/test/jdk/javax/swing/UIDefaults/6622002/bug6622002.java index 25d4f626d2d5c..a872f4c4a1168 100644 --- a/test/jdk/javax/swing/UIDefaults/6622002/bug6622002.java +++ b/test/jdk/javax/swing/UIDefaults/6622002/bug6622002.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -26,7 +26,7 @@ * @bug 6622002 * @author Alexander Potochkin * @summary UIDefault.ProxyLazyValue has unsafe reflection usage - * @run main/othervm bug6622002 + * @run main/othervm -Djava.security.manager=allow bug6622002 */ import javax.swing.*; diff --git a/test/jdk/javax/swing/UIDefaults/6795356/TableTest.java b/test/jdk/javax/swing/UIDefaults/6795356/TableTest.java index bcafb38a676d9..234ec6a718795 100644 --- a/test/jdk/javax/swing/UIDefaults/6795356/TableTest.java +++ b/test/jdk/javax/swing/UIDefaults/6795356/TableTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -26,7 +26,7 @@ * @bug 6795356 * @summary Checks that SwingLazyValue class works correctly * @author Alexander Potochkin - * @run main/othervm TableTest + * @run main/othervm -Djava.security.manager=allow TableTest */ import javax.swing.*; diff --git a/test/jdk/javax/swing/UIDefaults/8080972/TestProxyLazyValue.java b/test/jdk/javax/swing/UIDefaults/8080972/TestProxyLazyValue.java index 73a2d4cc865dd..cef4ce41bcb70 100644 --- a/test/jdk/javax/swing/UIDefaults/8080972/TestProxyLazyValue.java +++ b/test/jdk/javax/swing/UIDefaults/8080972/TestProxyLazyValue.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,7 +28,7 @@ * @summary Audit Core Reflection in module java.desktop for places that will * require changes to work with modules * @author Alexander Scherbatiy - * @run main/othervm TestProxyLazyValue + * @run main/othervm -Djava.security.manager=allow TestProxyLazyValue */ public class TestProxyLazyValue { diff --git a/test/jdk/javax/swing/dnd/8080972/TestTransferHandler.java b/test/jdk/javax/swing/dnd/8080972/TestTransferHandler.java index a7cf675c482b8..78d6879a9bfa4 100644 --- a/test/jdk/javax/swing/dnd/8080972/TestTransferHandler.java +++ b/test/jdk/javax/swing/dnd/8080972/TestTransferHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,6 +28,7 @@ /* * @test * @bug 8080972 + * @run main/othervm -Djava.security.manager=allow TestTransferHandler * @summary Audit Core Reflection in module java.desktop for places that will * require changes to work with modules * @author Alexander Scherbatiy diff --git a/test/jdk/javax/swing/plaf/nimbus/8080972/TestAbstractRegionPainter.java b/test/jdk/javax/swing/plaf/nimbus/8080972/TestAbstractRegionPainter.java index f2b18724d23a8..ee0abaab166e9 100644 --- a/test/jdk/javax/swing/plaf/nimbus/8080972/TestAbstractRegionPainter.java +++ b/test/jdk/javax/swing/plaf/nimbus/8080972/TestAbstractRegionPainter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,6 +28,7 @@ /* * @test * @bug 8080972 + * @run main/othervm -Djava.security.manager=allow TestAbstractRegionPainter * @summary Audit Core Reflection in module java.desktop for places that will * require changes to work with modules * @author Alexander Scherbatiy diff --git a/test/jdk/javax/swing/plaf/synth/Test8043627.java b/test/jdk/javax/swing/plaf/synth/Test8043627.java index 2a36634a5fd16..03ca4928f4051 100644 --- a/test/jdk/javax/swing/plaf/synth/Test8043627.java +++ b/test/jdk/javax/swing/plaf/synth/Test8043627.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -27,6 +27,7 @@ /* * @test * @bug 8043627 + * @run main/othervm -Djava.security.manager=allow Test8043627 * @summary Tests that SynthContext can be created with SecurityManager installed * @author Sergey Malenkov */ diff --git a/test/jdk/javax/swing/text/View/8080972/TestObjectView.java b/test/jdk/javax/swing/text/View/8080972/TestObjectView.java index a2e72391a0a48..03b9dfa1b43b9 100644 --- a/test/jdk/javax/swing/text/View/8080972/TestObjectView.java +++ b/test/jdk/javax/swing/text/View/8080972/TestObjectView.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -36,7 +36,7 @@ * @summary Audit Core Reflection in module java.desktop for places that will * require changes to work with modules * @author Alexander Scherbatiy - * @run main/othervm TestObjectView + * @run main/othervm -Djava.security.manager=allow TestObjectView */ public class TestObjectView { From 188dde34377408945a1af60af21d0da8ead5de05 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:44 -0400 Subject: [PATCH 07/19] test for 2d --- test/jdk/java/awt/FontClass/CreateFont/BigFont.java | 4 ++-- .../java/awt/FontClass/CreateFont/fileaccess/FontFile.java | 2 +- .../awt/FontClass/CreateFont/fileaccess/TestFontFile.sh | 2 +- test/jdk/java/awt/FontClass/FontAccess.java | 4 ++-- test/jdk/java/awt/FontClass/FontPrivilege.java | 4 ++-- .../imageio/CachePremissionsTest/CachePermissionsTest.java | 6 +++--- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/jdk/java/awt/FontClass/CreateFont/BigFont.java b/test/jdk/java/awt/FontClass/CreateFont/BigFont.java index 0c5970b279415..34a98c1511921 100644 --- a/test/jdk/java/awt/FontClass/CreateFont/BigFont.java +++ b/test/jdk/java/awt/FontClass/CreateFont/BigFont.java @@ -34,8 +34,8 @@ * @key headful * @bug 6522586 * @summary Enforce limits on font creation - * @run main BigFont 1 A.ttf - * @run main BigFont 2 A.ttf + * @run main/othervm -Djava.security.manager=allow BigFont 1 A.ttf + * @run main/othervm -Djava.security.manager=allow BigFont 2 A.ttf */ public class BigFont { diff --git a/test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java b/test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java index 0196591d24532..fbf226f4d9ca7 100644 --- a/test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java +++ b/test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it diff --git a/test/jdk/java/awt/FontClass/CreateFont/fileaccess/TestFontFile.sh b/test/jdk/java/awt/FontClass/CreateFont/fileaccess/TestFontFile.sh index 7737f63c22779..d8930f3b3fade 100644 --- a/test/jdk/java/awt/FontClass/CreateFont/fileaccess/TestFontFile.sh +++ b/test/jdk/java/awt/FontClass/CreateFont/fileaccess/TestFontFile.sh @@ -71,7 +71,7 @@ THIS_DIR=`pwd` ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -version -${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} FontFile > test.out 2>&1 +${TESTJAVA}${FS}bin${FS}java -Djava.security.manager=allow ${BIT_FLAG} FontFile > test.out 2>&1 STATUS=$? diff --git a/test/jdk/java/awt/FontClass/FontAccess.java b/test/jdk/java/awt/FontClass/FontAccess.java index 489b2a0474bb9..bcd561b8cbc8b 100644 --- a/test/jdk/java/awt/FontClass/FontAccess.java +++ b/test/jdk/java/awt/FontClass/FontAccess.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,7 +25,7 @@ * @test * @bug 6785424 * @summary Test no SecurityException searching for a font. - * @run main FontAccess + * @run main/othervm -Djava.security.manager=allow FontAccess * * This can only test the specific bug if run on something like * Windows Citrix Server where SystemDirectory and WindowsDirectory diff --git a/test/jdk/java/awt/FontClass/FontPrivilege.java b/test/jdk/java/awt/FontClass/FontPrivilege.java index 24fd5116c8cbc..96938ece22588 100644 --- a/test/jdk/java/awt/FontClass/FontPrivilege.java +++ b/test/jdk/java/awt/FontClass/FontPrivilege.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,7 +25,7 @@ * @test * @bug 5010310 6319835 6904882 6968373 * @summary test fonts can be created in the presence of a security manager - * @run main FontPrivilege + * @run main/othervm -Djava.security.manager=allow FontPrivilege */ import java.awt.Font; diff --git a/test/jdk/javax/imageio/CachePremissionsTest/CachePermissionsTest.java b/test/jdk/javax/imageio/CachePremissionsTest/CachePermissionsTest.java index c101f9d1780d8..c64b171a5ef4f 100644 --- a/test/jdk/javax/imageio/CachePremissionsTest/CachePermissionsTest.java +++ b/test/jdk/javax/imageio/CachePremissionsTest/CachePermissionsTest.java @@ -50,9 +50,9 @@ * -Djava.security.debug=access can be used to verify file permissions. * * @run main CachePermissionsTest true - * @run main/othervm CachePermissionsTest false w.policy - * @run main/othervm CachePermissionsTest false rw.policy - * @run main/othervm CachePermissionsTest true rwd.policy + * @run main/othervm -Djava.security.manager=allow CachePermissionsTest false w.policy + * @run main/othervm -Djava.security.manager=allow CachePermissionsTest false rw.policy + * @run main/othervm -Djava.security.manager=allow CachePermissionsTest true rwd.policy */ import java.io.File; From 76f6e2aa60159a67739e87a8726debd8f37312e5 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:45 -0400 Subject: [PATCH 08/19] test for security --- .../java/security/BasicPermission/NullOrEmptyName.java | 1 + .../Policy/PolicyProvider/UseSystemClassLoader.java | 8 ++++---- test/jdk/java/security/ProtectionDomain/AllPerm.java | 1 + test/jdk/java/security/SecureClassLoader/DefineClass.java | 2 +- .../crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java | 2 +- test/jdk/sun/security/krb5/auto/AcceptPermissions.java | 4 ++-- test/jdk/sun/security/krb5/auto/HttpNegotiateServer.java | 2 +- test/jdk/sun/security/krb5/auto/KeyPermissions.java | 2 +- test/jdk/sun/security/pkcs11/Cipher/ReinitCipher.java | 2 +- .../sun/security/pkcs11/Cipher/TestPKCS5PaddingError.java | 2 +- test/jdk/sun/security/pkcs11/Cipher/TestRSACipher.java | 2 +- .../jdk/sun/security/pkcs11/Cipher/TestRSACipherWrap.java | 2 +- test/jdk/sun/security/pkcs11/Cipher/TestRawRSACipher.java | 2 +- test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphers.java | 2 +- .../sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java | 2 +- .../pkcs11/KeyAgreement/IllegalPackageAccess.java | 2 +- .../sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java | 2 +- test/jdk/sun/security/pkcs11/KeyAgreement/TestDH.java | 2 +- .../jdk/sun/security/pkcs11/KeyAgreement/TestInterop.java | 2 +- test/jdk/sun/security/pkcs11/KeyAgreement/TestShort.java | 2 +- .../security/pkcs11/KeyAgreement/UnsupportedDHKeys.java | 2 +- test/jdk/sun/security/pkcs11/KeyGenerator/DESParity.java | 2 +- .../security/pkcs11/KeyGenerator/HmacDefKeySizeTest.java | 2 +- .../security/pkcs11/KeyGenerator/TestKeyGenerator.java | 2 +- .../sun/security/pkcs11/KeyPairGenerator/TestDH2048.java | 2 +- test/jdk/sun/security/pkcs11/Mac/MacKAT.java | 2 +- test/jdk/sun/security/pkcs11/Mac/MacSameTest.java | 2 +- test/jdk/sun/security/pkcs11/Mac/ReinitMac.java | 2 +- test/jdk/sun/security/pkcs11/MessageDigest/DigestKAT.java | 2 +- .../sun/security/pkcs11/MessageDigest/ReinitDigest.java | 2 +- .../sun/security/pkcs11/MessageDigest/TestCloning.java | 2 +- test/jdk/sun/security/pkcs11/Provider/Login.sh | 1 + test/jdk/sun/security/pkcs11/Secmod/AddPrivateKey.java | 2 +- test/jdk/sun/security/pkcs11/Secmod/AddTrustedCert.java | 2 +- test/jdk/sun/security/pkcs11/Secmod/Crypto.java | 2 +- test/jdk/sun/security/pkcs11/Secmod/GetPrivateKey.java | 2 +- test/jdk/sun/security/pkcs11/Secmod/JksSetPrivateKey.java | 2 +- test/jdk/sun/security/pkcs11/Secmod/LoadKeystore.java | 2 +- test/jdk/sun/security/pkcs11/Secmod/TrustAnchors.java | 2 +- test/jdk/sun/security/pkcs11/SecureRandom/Basic.java | 2 +- test/jdk/sun/security/pkcs11/Signature/ByteBuffers.java | 2 +- test/jdk/sun/security/pkcs11/Signature/TestDSA.java | 2 +- .../sun/security/pkcs11/Signature/TestDSAKeyLength.java | 2 +- .../sun/security/pkcs11/Signature/TestRSAKeyLength.java | 2 +- test/jdk/sun/security/pkcs11/ec/ReadCertificates.java | 2 +- test/jdk/sun/security/pkcs11/ec/ReadPKCS12.java | 2 +- test/jdk/sun/security/pkcs11/ec/TestCurves.java | 2 +- test/jdk/sun/security/pkcs11/ec/TestECDH.java | 2 +- test/jdk/sun/security/pkcs11/ec/TestECDH2.java | 2 +- test/jdk/sun/security/pkcs11/ec/TestECDSA.java | 2 +- test/jdk/sun/security/pkcs11/ec/TestECDSA2.java | 2 +- test/jdk/sun/security/pkcs11/ec/TestECGenSpec.java | 2 +- test/jdk/sun/security/pkcs11/ec/TestKeyFactory.java | 2 +- test/jdk/sun/security/pkcs11/rsa/KeyWrap.java | 2 +- test/jdk/sun/security/pkcs11/rsa/TestCACerts.java | 2 +- test/jdk/sun/security/pkcs11/rsa/TestKeyFactory.java | 2 +- .../jdk/sun/security/pkcs11/rsa/TestKeyPairGenerator.java | 2 +- .../pkcs11/rsa/TestP11KeyFactoryGetRSAKeySpec.java | 2 +- test/jdk/sun/security/pkcs11/rsa/TestSignatures.java | 2 +- test/jdk/sun/security/pkcs11/tls/TestKeyMaterial.java | 2 +- .../jdk/sun/security/pkcs11/tls/TestLeadingZeroesP11.java | 2 +- test/jdk/sun/security/pkcs11/tls/TestMasterSecret.java | 2 +- test/jdk/sun/security/pkcs11/tls/TestPRF.java | 2 +- test/jdk/sun/security/pkcs11/tls/TestPremaster.java | 2 +- .../sun/security/provider/PolicyFile/BadPolicyFile.java | 2 +- 65 files changed, 69 insertions(+), 66 deletions(-) diff --git a/test/jdk/java/security/BasicPermission/NullOrEmptyName.java b/test/jdk/java/security/BasicPermission/NullOrEmptyName.java index ce7f109d32b7a..970d011e64fdb 100644 --- a/test/jdk/java/security/BasicPermission/NullOrEmptyName.java +++ b/test/jdk/java/security/BasicPermission/NullOrEmptyName.java @@ -27,6 +27,7 @@ * @summary Make sure BasicPermission constructor raises * NullPointerException if permission name is null, and * IllegalArgumentException is permission name is empty. + * @run main/othervm -Djava.security.manager=allow NullOrEmptyName */ public class NullOrEmptyName { diff --git a/test/jdk/java/security/Policy/PolicyProvider/UseSystemClassLoader.java b/test/jdk/java/security/Policy/PolicyProvider/UseSystemClassLoader.java index 7c33b1085d209..7988f19c0a816 100644 --- a/test/jdk/java/security/Policy/PolicyProvider/UseSystemClassLoader.java +++ b/test/jdk/java/security/Policy/PolicyProvider/UseSystemClassLoader.java @@ -31,10 +31,10 @@ * @bug 8075706 * @summary Check that a custom policy provider can be loaded from the classpath * @modules java.base/sun.security.provider - * @run main/othervm UseSystemClassLoader CUSTOM - * @run main/othervm UseSystemClassLoader DEFAULT - * @run main/othervm UseSystemClassLoader NOT_AVAIL - * @run main/othervm UseSystemClassLoader NOT_SET + * @run main/othervm -Djava.security.manager=allow UseSystemClassLoader CUSTOM + * @run main/othervm -Djava.security.manager=allow UseSystemClassLoader DEFAULT + * @run main/othervm -Djava.security.manager=allow UseSystemClassLoader NOT_AVAIL + * @run main/othervm -Djava.security.manager=allow UseSystemClassLoader NOT_SET */ public class UseSystemClassLoader { diff --git a/test/jdk/java/security/ProtectionDomain/AllPerm.java b/test/jdk/java/security/ProtectionDomain/AllPerm.java index e1b997983d02c..7be2d1e216fe8 100644 --- a/test/jdk/java/security/ProtectionDomain/AllPerm.java +++ b/test/jdk/java/security/ProtectionDomain/AllPerm.java @@ -26,6 +26,7 @@ * @bug 6256734 * @summary ProtectionDomain could optimize implies by first checking for * AllPermission in internal collection + * @run main/othervm -Djava.security.manager=allow AllPerm */ import java.io.*; diff --git a/test/jdk/java/security/SecureClassLoader/DefineClass.java b/test/jdk/java/security/SecureClassLoader/DefineClass.java index 7e7bc77c61749..7ad634c0e4c62 100644 --- a/test/jdk/java/security/SecureClassLoader/DefineClass.java +++ b/test/jdk/java/security/SecureClassLoader/DefineClass.java @@ -58,7 +58,7 @@ * @summary Make sure equivalent ProtectionDomains are granted the same * permissions when the CodeSource URLs are different but resolve * to the same ip address after name service resolution. - * @run main/othervm DefineClass + * @run main/othervm -Djava.security.manager=allow DefineClass */ public class DefineClass { diff --git a/test/jdk/javax/xml/crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java b/test/jdk/javax/xml/crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java index ca3be869c4da6..98c0182a144d4 100644 --- a/test/jdk/javax/xml/crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java +++ b/test/jdk/javax/xml/crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java @@ -26,7 +26,7 @@ * @bug 6436919 6460930 * @summary check that XML Signatures can be generated and validated with * SecurityManager enabled and default policy - * @run main/othervm XMLDSigWithSecMgr + * @run main/othervm -Djava.security.manager=allow XMLDSigWithSecMgr * @author Sean Mullan */ import java.io.*; diff --git a/test/jdk/sun/security/krb5/auto/AcceptPermissions.java b/test/jdk/sun/security/krb5/auto/AcceptPermissions.java index 00fbced1bab8d..172d3ede9ba93 100644 --- a/test/jdk/sun/security/krb5/auto/AcceptPermissions.java +++ b/test/jdk/sun/security/krb5/auto/AcceptPermissions.java @@ -28,8 +28,8 @@ * @library /test/lib * @compile -XDignore.symbol.file AcceptPermissions.java * @run main jdk.test.lib.FileInstaller TestHosts TestHosts - * @run main/othervm -Djdk.net.hosts.file=TestHosts AcceptPermissions two - * @run main/othervm -Djdk.net.hosts.file=TestHosts AcceptPermissions unbound + * @run main/othervm -Djava.security.manager=allow -Djdk.net.hosts.file=TestHosts AcceptPermissions two + * @run main/othervm -Djava.security.manager=allow -Djdk.net.hosts.file=TestHosts AcceptPermissions unbound */ import java.nio.file.Files; diff --git a/test/jdk/sun/security/krb5/auto/HttpNegotiateServer.java b/test/jdk/sun/security/krb5/auto/HttpNegotiateServer.java index 095806d519918..fc5d1380a5c05 100644 --- a/test/jdk/sun/security/krb5/auto/HttpNegotiateServer.java +++ b/test/jdk/sun/security/krb5/auto/HttpNegotiateServer.java @@ -41,7 +41,7 @@ * user cancels the first one * @library /test/lib * @run main jdk.test.lib.FileInstaller TestHosts TestHosts - * @run main/othervm -Djdk.net.hosts.file=TestHosts HttpNegotiateServer + * @run main/othervm -Djava.security.manager=allow -Djdk.net.hosts.file=TestHosts HttpNegotiateServer */ import com.sun.net.httpserver.Headers; diff --git a/test/jdk/sun/security/krb5/auto/KeyPermissions.java b/test/jdk/sun/security/krb5/auto/KeyPermissions.java index 70d8f1c66f604..89f034db809ea 100644 --- a/test/jdk/sun/security/krb5/auto/KeyPermissions.java +++ b/test/jdk/sun/security/krb5/auto/KeyPermissions.java @@ -28,7 +28,7 @@ * @library /test/lib * @compile -XDignore.symbol.file KeyPermissions.java * @run main jdk.test.lib.FileInstaller TestHosts TestHosts - * @run main/othervm -Djdk.net.hosts.file=TestHosts KeyPermissions + * @run main/othervm -Djava.security.manager=allow -Djdk.net.hosts.file=TestHosts KeyPermissions */ import java.security.AccessControlException; diff --git a/test/jdk/sun/security/pkcs11/Cipher/ReinitCipher.java b/test/jdk/sun/security/pkcs11/Cipher/ReinitCipher.java index c4e2b4b8ba915..da547da752b0f 100644 --- a/test/jdk/sun/security/pkcs11/Cipher/ReinitCipher.java +++ b/test/jdk/sun/security/pkcs11/Cipher/ReinitCipher.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm ReinitCipher - * @run main/othervm ReinitCipher sm + * @run main/othervm -Djava.security.manager=allow ReinitCipher sm */ import java.security.Provider; diff --git a/test/jdk/sun/security/pkcs11/Cipher/TestPKCS5PaddingError.java b/test/jdk/sun/security/pkcs11/Cipher/TestPKCS5PaddingError.java index a2db21317dda0..d192526bf4bdc 100644 --- a/test/jdk/sun/security/pkcs11/Cipher/TestPKCS5PaddingError.java +++ b/test/jdk/sun/security/pkcs11/Cipher/TestPKCS5PaddingError.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestPKCS5PaddingError - * @run main/othervm TestPKCS5PaddingError sm + * @run main/othervm -Djava.security.manager=allow TestPKCS5PaddingError sm */ import java.security.AlgorithmParameters; diff --git a/test/jdk/sun/security/pkcs11/Cipher/TestRSACipher.java b/test/jdk/sun/security/pkcs11/Cipher/TestRSACipher.java index e39fa82fb7d61..233cb4e623e74 100644 --- a/test/jdk/sun/security/pkcs11/Cipher/TestRSACipher.java +++ b/test/jdk/sun/security/pkcs11/Cipher/TestRSACipher.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestRSACipher - * @run main/othervm TestRSACipher sm + * @run main/othervm -Djava.security.manager=allow TestRSACipher sm */ import java.security.GeneralSecurityException; diff --git a/test/jdk/sun/security/pkcs11/Cipher/TestRSACipherWrap.java b/test/jdk/sun/security/pkcs11/Cipher/TestRSACipherWrap.java index ceea0467c0efa..7191d5baac5ba 100644 --- a/test/jdk/sun/security/pkcs11/Cipher/TestRSACipherWrap.java +++ b/test/jdk/sun/security/pkcs11/Cipher/TestRSACipherWrap.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestRSACipherWrap - * @run main/othervm TestRSACipherWrap sm + * @run main/othervm -Djava.security.manager=allow TestRSACipherWrap sm */ import java.security.GeneralSecurityException; diff --git a/test/jdk/sun/security/pkcs11/Cipher/TestRawRSACipher.java b/test/jdk/sun/security/pkcs11/Cipher/TestRawRSACipher.java index c05ec217551c6..2991dcfa5d88a 100644 --- a/test/jdk/sun/security/pkcs11/Cipher/TestRawRSACipher.java +++ b/test/jdk/sun/security/pkcs11/Cipher/TestRawRSACipher.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestRawRSACipher - * @run main/othervm TestRawRSACipher sm + * @run main/othervm -Djava.security.manager=allow TestRawRSACipher sm */ import java.security.GeneralSecurityException; diff --git a/test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphers.java b/test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphers.java index 598d16b4b4b87..2127256b5ec07 100644 --- a/test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphers.java +++ b/test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphers.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestSymmCiphers - * @run main/othervm TestSymmCiphers sm + * @run main/othervm -Djava.security.manager=allow TestSymmCiphers sm */ import java.io.ByteArrayOutputStream; diff --git a/test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java b/test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java index d5fd02e09d56c..8f53cda2f6ba4 100644 --- a/test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java +++ b/test/jdk/sun/security/pkcs11/Cipher/TestSymmCiphersNoPad.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestSymmCiphersNoPad - * @run main/othervm TestSymmCiphersNoPad sm + * @run main/othervm -Djava.security.manager=allow TestSymmCiphersNoPad sm */ import java.io.ByteArrayInputStream; diff --git a/test/jdk/sun/security/pkcs11/KeyAgreement/IllegalPackageAccess.java b/test/jdk/sun/security/pkcs11/KeyAgreement/IllegalPackageAccess.java index 9490108597c04..ec6234c6bdfc6 100644 --- a/test/jdk/sun/security/pkcs11/KeyAgreement/IllegalPackageAccess.java +++ b/test/jdk/sun/security/pkcs11/KeyAgreement/IllegalPackageAccess.java @@ -38,7 +38,7 @@ * @test * @bug 8259319 * @library /test/lib .. - * @run main/othervm IllegalPackageAccess + * @run main/othervm -Djava.security.manager=allow IllegalPackageAccess */ public class IllegalPackageAccess extends PKCS11Test { diff --git a/test/jdk/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java b/test/jdk/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java index b1a5d83ac762a..1246e13fb2344 100644 --- a/test/jdk/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java +++ b/test/jdk/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java @@ -28,7 +28,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm SupportedDHKeys - * @run main/othervm SupportedDHKeys sm + * @run main/othervm -Djava.security.manager=allow SupportedDHKeys sm */ import java.math.BigInteger; diff --git a/test/jdk/sun/security/pkcs11/KeyAgreement/TestDH.java b/test/jdk/sun/security/pkcs11/KeyAgreement/TestDH.java index 765e6e93ab78c..d5569f0f3cd7b 100644 --- a/test/jdk/sun/security/pkcs11/KeyAgreement/TestDH.java +++ b/test/jdk/sun/security/pkcs11/KeyAgreement/TestDH.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm -Djdk.crypto.KeyAgreement.legacyKDF=true TestDH - * @run main/othervm -Djdk.crypto.KeyAgreement.legacyKDF=true TestDH sm + * @run main/othervm -Djava.security.manager=allow -Djdk.crypto.KeyAgreement.legacyKDF=true TestDH sm */ import java.security.KeyPair; diff --git a/test/jdk/sun/security/pkcs11/KeyAgreement/TestInterop.java b/test/jdk/sun/security/pkcs11/KeyAgreement/TestInterop.java index 6e359196ac651..146a650542329 100644 --- a/test/jdk/sun/security/pkcs11/KeyAgreement/TestInterop.java +++ b/test/jdk/sun/security/pkcs11/KeyAgreement/TestInterop.java @@ -28,7 +28,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestInterop - * @run main/othervm TestInterop sm + * @run main/othervm -Djava.security.manager=allow TestInterop sm */ import java.math.BigInteger; import java.security.KeyFactory; diff --git a/test/jdk/sun/security/pkcs11/KeyAgreement/TestShort.java b/test/jdk/sun/security/pkcs11/KeyAgreement/TestShort.java index 29656c20f3b06..0639c06b7d8d3 100644 --- a/test/jdk/sun/security/pkcs11/KeyAgreement/TestShort.java +++ b/test/jdk/sun/security/pkcs11/KeyAgreement/TestShort.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestShort - * @run main/othervm TestShort sm + * @run main/othervm -Djava.security.manager=allow TestShort sm */ import java.math.BigInteger; diff --git a/test/jdk/sun/security/pkcs11/KeyAgreement/UnsupportedDHKeys.java b/test/jdk/sun/security/pkcs11/KeyAgreement/UnsupportedDHKeys.java index 876627ebfdb83..af1734dcd8033 100644 --- a/test/jdk/sun/security/pkcs11/KeyAgreement/UnsupportedDHKeys.java +++ b/test/jdk/sun/security/pkcs11/KeyAgreement/UnsupportedDHKeys.java @@ -28,7 +28,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm UnsupportedDHKeys - * @run main/othervm UnsupportedDHKeys sm + * @run main/othervm -Djava.security.manager=allow UnsupportedDHKeys sm */ import java.security.InvalidParameterException; diff --git a/test/jdk/sun/security/pkcs11/KeyGenerator/DESParity.java b/test/jdk/sun/security/pkcs11/KeyGenerator/DESParity.java index 2f79646fa48d7..c08c224c62001 100644 --- a/test/jdk/sun/security/pkcs11/KeyGenerator/DESParity.java +++ b/test/jdk/sun/security/pkcs11/KeyGenerator/DESParity.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm DESParity - * @run main/othervm DESParity sm + * @run main/othervm -Djava.security.manager=allow DESParity sm */ import java.security.Provider; diff --git a/test/jdk/sun/security/pkcs11/KeyGenerator/HmacDefKeySizeTest.java b/test/jdk/sun/security/pkcs11/KeyGenerator/HmacDefKeySizeTest.java index d6707028d96ef..14dae5feece1b 100644 --- a/test/jdk/sun/security/pkcs11/KeyGenerator/HmacDefKeySizeTest.java +++ b/test/jdk/sun/security/pkcs11/KeyGenerator/HmacDefKeySizeTest.java @@ -28,7 +28,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm HmacDefKeySizeTest - * @run main/othervm HmacDefKeySizeTest sm + * @run main/othervm -Djava.security.manager=allow HmacDefKeySizeTest sm */ import java.security.InvalidKeyException; diff --git a/test/jdk/sun/security/pkcs11/KeyGenerator/TestKeyGenerator.java b/test/jdk/sun/security/pkcs11/KeyGenerator/TestKeyGenerator.java index ae0e01e1ad5aa..ccf86444564ad 100644 --- a/test/jdk/sun/security/pkcs11/KeyGenerator/TestKeyGenerator.java +++ b/test/jdk/sun/security/pkcs11/KeyGenerator/TestKeyGenerator.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestKeyGenerator - * @run main/othervm TestKeyGenerator sm + * @run main/othervm -Djava.security.manager=allow TestKeyGenerator sm */ import java.security.InvalidParameterException; diff --git a/test/jdk/sun/security/pkcs11/KeyPairGenerator/TestDH2048.java b/test/jdk/sun/security/pkcs11/KeyPairGenerator/TestDH2048.java index f3e3465fd2774..f251c443c18fd 100644 --- a/test/jdk/sun/security/pkcs11/KeyPairGenerator/TestDH2048.java +++ b/test/jdk/sun/security/pkcs11/KeyPairGenerator/TestDH2048.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestDH2048 - * @run main/othervm TestDH2048 sm + * @run main/othervm -Djava.security.manager=allow TestDH2048 sm */ import java.security.InvalidParameterException; diff --git a/test/jdk/sun/security/pkcs11/Mac/MacKAT.java b/test/jdk/sun/security/pkcs11/Mac/MacKAT.java index 70cd50e52c324..e4bed00c7acec 100644 --- a/test/jdk/sun/security/pkcs11/Mac/MacKAT.java +++ b/test/jdk/sun/security/pkcs11/Mac/MacKAT.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm MacKAT - * @run main/othervm MacKAT sm + * @run main/othervm -Djava.security.manager=allow MacKAT sm */ import java.io.UnsupportedEncodingException; diff --git a/test/jdk/sun/security/pkcs11/Mac/MacSameTest.java b/test/jdk/sun/security/pkcs11/Mac/MacSameTest.java index b44b2f4a5b970..f009fbb95e56f 100644 --- a/test/jdk/sun/security/pkcs11/Mac/MacSameTest.java +++ b/test/jdk/sun/security/pkcs11/Mac/MacSameTest.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm MacSameTest - * @run main/othervm MacSameTest sm + * @run main/othervm -Djava.security.manager=allow MacSameTest sm * @key randomness */ diff --git a/test/jdk/sun/security/pkcs11/Mac/ReinitMac.java b/test/jdk/sun/security/pkcs11/Mac/ReinitMac.java index 7e045232e3a87..66fd7d88ce440 100644 --- a/test/jdk/sun/security/pkcs11/Mac/ReinitMac.java +++ b/test/jdk/sun/security/pkcs11/Mac/ReinitMac.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm ReinitMac - * @run main/othervm ReinitMac sm + * @run main/othervm -Djava.security.manager=allow ReinitMac sm */ import java.security.Provider; diff --git a/test/jdk/sun/security/pkcs11/MessageDigest/DigestKAT.java b/test/jdk/sun/security/pkcs11/MessageDigest/DigestKAT.java index 426ed33031c37..16b8cced7338c 100644 --- a/test/jdk/sun/security/pkcs11/MessageDigest/DigestKAT.java +++ b/test/jdk/sun/security/pkcs11/MessageDigest/DigestKAT.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm DigestKAT - * @run main/othervm DigestKAT sm + * @run main/othervm -Djava.security.manager=allow DigestKAT sm */ import java.io.ByteArrayOutputStream; diff --git a/test/jdk/sun/security/pkcs11/MessageDigest/ReinitDigest.java b/test/jdk/sun/security/pkcs11/MessageDigest/ReinitDigest.java index 268f698276be7..7e6d38d0746da 100644 --- a/test/jdk/sun/security/pkcs11/MessageDigest/ReinitDigest.java +++ b/test/jdk/sun/security/pkcs11/MessageDigest/ReinitDigest.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm ReinitDigest - * @run main/othervm ReinitDigest sm + * @run main/othervm -Djava.security.manager=allow ReinitDigest sm */ import java.security.MessageDigest; diff --git a/test/jdk/sun/security/pkcs11/MessageDigest/TestCloning.java b/test/jdk/sun/security/pkcs11/MessageDigest/TestCloning.java index ace601c723354..c37f6d3324baa 100644 --- a/test/jdk/sun/security/pkcs11/MessageDigest/TestCloning.java +++ b/test/jdk/sun/security/pkcs11/MessageDigest/TestCloning.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestCloning - * @run main/othervm TestCloning sm + * @run main/othervm -Djava.security.manager=allow TestCloning sm */ import java.security.MessageDigest; diff --git a/test/jdk/sun/security/pkcs11/Provider/Login.sh b/test/jdk/sun/security/pkcs11/Provider/Login.sh index dfaccbd4c7e15..a9aeb1f0edea7 100644 --- a/test/jdk/sun/security/pkcs11/Provider/Login.sh +++ b/test/jdk/sun/security/pkcs11/Provider/Login.sh @@ -124,6 +124,7 @@ ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} \ -Dtest.src=${TESTSRC} \ -Dtest.classes=${TESTCLASSES} \ -Djava.security.debug=${DEBUG} \ + -Djava.security.manager=allow \ Login sm Login.policy # save error status diff --git a/test/jdk/sun/security/pkcs11/Secmod/AddPrivateKey.java b/test/jdk/sun/security/pkcs11/Secmod/AddPrivateKey.java index 4fd239150c143..ab74358fb0f7d 100644 --- a/test/jdk/sun/security/pkcs11/Secmod/AddPrivateKey.java +++ b/test/jdk/sun/security/pkcs11/Secmod/AddPrivateKey.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm AddPrivateKey - * @run main/othervm AddPrivateKey sm policy + * @run main/othervm -Djava.security.manager=allow AddPrivateKey sm policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/Secmod/AddTrustedCert.java b/test/jdk/sun/security/pkcs11/Secmod/AddTrustedCert.java index f64076c14f6ff..9792a80de8dc0 100644 --- a/test/jdk/sun/security/pkcs11/Secmod/AddTrustedCert.java +++ b/test/jdk/sun/security/pkcs11/Secmod/AddTrustedCert.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm AddTrustedCert - * @run main/othervm AddTrustedCert sm policy + * @run main/othervm -Djava.security.manager=allow AddTrustedCert sm policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/Secmod/Crypto.java b/test/jdk/sun/security/pkcs11/Secmod/Crypto.java index a83222951d901..d57794f1199fd 100644 --- a/test/jdk/sun/security/pkcs11/Secmod/Crypto.java +++ b/test/jdk/sun/security/pkcs11/Secmod/Crypto.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm Crypto - * @run main/othervm Crypto sm policy + * @run main/othervm -Djava.security.manager=allow Crypto sm policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/Secmod/GetPrivateKey.java b/test/jdk/sun/security/pkcs11/Secmod/GetPrivateKey.java index 48614bc3d7e6c..f9f809f0d28f0 100644 --- a/test/jdk/sun/security/pkcs11/Secmod/GetPrivateKey.java +++ b/test/jdk/sun/security/pkcs11/Secmod/GetPrivateKey.java @@ -30,7 +30,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm GetPrivateKey - * @run main/othervm GetPrivateKey sm policy + * @run main/othervm -Djava.security.manager=allow GetPrivateKey sm policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/Secmod/JksSetPrivateKey.java b/test/jdk/sun/security/pkcs11/Secmod/JksSetPrivateKey.java index 6144853341a6a..1689d4c4ed993 100644 --- a/test/jdk/sun/security/pkcs11/Secmod/JksSetPrivateKey.java +++ b/test/jdk/sun/security/pkcs11/Secmod/JksSetPrivateKey.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm JksSetPrivateKey - * @run main/othervm JksSetPrivateKey sm policy + * @run main/othervm -Djava.security.manager=allow JksSetPrivateKey sm policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/Secmod/LoadKeystore.java b/test/jdk/sun/security/pkcs11/Secmod/LoadKeystore.java index 12373f3b6c5c1..ce9f8e9bb6383 100644 --- a/test/jdk/sun/security/pkcs11/Secmod/LoadKeystore.java +++ b/test/jdk/sun/security/pkcs11/Secmod/LoadKeystore.java @@ -28,7 +28,7 @@ * @library /test/lib ../ * @modules jdk.crypto.cryptoki * @run main/othervm LoadKeystore - * @run main/othervm LoadKeystore sm policy + * @run main/othervm -Djava.security.manager=allow LoadKeystore sm policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/Secmod/TrustAnchors.java b/test/jdk/sun/security/pkcs11/Secmod/TrustAnchors.java index 73247a2b3e93e..81863f028f9b6 100644 --- a/test/jdk/sun/security/pkcs11/Secmod/TrustAnchors.java +++ b/test/jdk/sun/security/pkcs11/Secmod/TrustAnchors.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TrustAnchors - * @run main/othervm TrustAnchors sm policy + * @run main/othervm -Djava.security.manager=allow TrustAnchors sm policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/SecureRandom/Basic.java b/test/jdk/sun/security/pkcs11/SecureRandom/Basic.java index 381efb6894277..78cd051835ef4 100644 --- a/test/jdk/sun/security/pkcs11/SecureRandom/Basic.java +++ b/test/jdk/sun/security/pkcs11/SecureRandom/Basic.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm Basic - * @run main/othervm Basic sm + * @run main/othervm -Djava.security.manager=allow Basic sm */ import java.security.NoSuchAlgorithmException; diff --git a/test/jdk/sun/security/pkcs11/Signature/ByteBuffers.java b/test/jdk/sun/security/pkcs11/Signature/ByteBuffers.java index 5416b04debf90..e7e1374245c2b 100644 --- a/test/jdk/sun/security/pkcs11/Signature/ByteBuffers.java +++ b/test/jdk/sun/security/pkcs11/Signature/ByteBuffers.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm ByteBuffers - * @run main/othervm ByteBuffers sm + * @run main/othervm -Djava.security.manager=allow ByteBuffers sm */ import java.nio.ByteBuffer; diff --git a/test/jdk/sun/security/pkcs11/Signature/TestDSA.java b/test/jdk/sun/security/pkcs11/Signature/TestDSA.java index 39ca94c2f9642..04fbdd00bf445 100644 --- a/test/jdk/sun/security/pkcs11/Signature/TestDSA.java +++ b/test/jdk/sun/security/pkcs11/Signature/TestDSA.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestDSA - * @run main/othervm TestDSA sm + * @run main/othervm -Djava.security.manager=allow TestDSA sm */ import java.io.ByteArrayOutputStream; diff --git a/test/jdk/sun/security/pkcs11/Signature/TestDSAKeyLength.java b/test/jdk/sun/security/pkcs11/Signature/TestDSAKeyLength.java index d591f939c25ce..7d0f68e4f0173 100644 --- a/test/jdk/sun/security/pkcs11/Signature/TestDSAKeyLength.java +++ b/test/jdk/sun/security/pkcs11/Signature/TestDSAKeyLength.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestDSAKeyLength - * @run main/othervm TestDSAKeyLength sm + * @run main/othervm -Djava.security.manager=allow TestDSAKeyLength sm */ import java.security.InvalidKeyException; diff --git a/test/jdk/sun/security/pkcs11/Signature/TestRSAKeyLength.java b/test/jdk/sun/security/pkcs11/Signature/TestRSAKeyLength.java index 004cb99d6013b..14352c358da23 100644 --- a/test/jdk/sun/security/pkcs11/Signature/TestRSAKeyLength.java +++ b/test/jdk/sun/security/pkcs11/Signature/TestRSAKeyLength.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestRSAKeyLength - * @run main/othervm TestRSAKeyLength sm + * @run main/othervm -Djava.security.manager=allow TestRSAKeyLength sm */ import java.security.InvalidKeyException; diff --git a/test/jdk/sun/security/pkcs11/ec/ReadCertificates.java b/test/jdk/sun/security/pkcs11/ec/ReadCertificates.java index 6c659f470ac26..4b4a6a20a4a38 100644 --- a/test/jdk/sun/security/pkcs11/ec/ReadCertificates.java +++ b/test/jdk/sun/security/pkcs11/ec/ReadCertificates.java @@ -31,7 +31,7 @@ * @library ../../../../java/security/testlibrary * @modules jdk.crypto.cryptoki * @run main/othervm ReadCertificates - * @run main/othervm ReadCertificates sm policy + * @run main/othervm -Djava.security.manager=allow ReadCertificates sm policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/ec/ReadPKCS12.java b/test/jdk/sun/security/pkcs11/ec/ReadPKCS12.java index edfe9fdccaf73..6005d88aec4db 100644 --- a/test/jdk/sun/security/pkcs11/ec/ReadPKCS12.java +++ b/test/jdk/sun/security/pkcs11/ec/ReadPKCS12.java @@ -31,7 +31,7 @@ * @key randomness * @modules jdk.crypto.cryptoki jdk.crypto.ec/sun.security.ec * @run main/othervm ReadPKCS12 - * @run main/othervm ReadPKCS12 sm policy + * @run main/othervm -Djava.security.manager=allow ReadPKCS12 sm policy */ import java.io.BufferedReader; diff --git a/test/jdk/sun/security/pkcs11/ec/TestCurves.java b/test/jdk/sun/security/pkcs11/ec/TestCurves.java index 2d88e274682f9..e3e43b72c3d2f 100644 --- a/test/jdk/sun/security/pkcs11/ec/TestCurves.java +++ b/test/jdk/sun/security/pkcs11/ec/TestCurves.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki/sun.security.pkcs11.wrapper * @run main/othervm TestCurves - * @run main/othervm TestCurves sm + * @run main/othervm -Djava.security.manager=allow TestCurves sm * @key randomness */ diff --git a/test/jdk/sun/security/pkcs11/ec/TestECDH.java b/test/jdk/sun/security/pkcs11/ec/TestECDH.java index 83d19bc91503c..49061f1288dcc 100644 --- a/test/jdk/sun/security/pkcs11/ec/TestECDH.java +++ b/test/jdk/sun/security/pkcs11/ec/TestECDH.java @@ -30,7 +30,7 @@ * @library ../../../../java/security/testlibrary * @modules jdk.crypto.cryptoki * @run main/othervm TestECDH - * @run main/othervm TestECDH sm policy + * @run main/othervm -Djava.security.manager=allow TestECDH sm policy */ import java.security.KeyFactory; diff --git a/test/jdk/sun/security/pkcs11/ec/TestECDH2.java b/test/jdk/sun/security/pkcs11/ec/TestECDH2.java index 55eeced8a02a6..69ea7275193a2 100644 --- a/test/jdk/sun/security/pkcs11/ec/TestECDH2.java +++ b/test/jdk/sun/security/pkcs11/ec/TestECDH2.java @@ -32,7 +32,7 @@ * jdk.crypto.cryptoki * @compile -XDignore.symbol.file TestECDH2.java * @run main/othervm TestECDH2 - * @run main/othervm TestECDH2 sm + * @run main/othervm -Djava.security.manager=allow TestECDH2 sm */ import java.math.BigInteger; diff --git a/test/jdk/sun/security/pkcs11/ec/TestECDSA.java b/test/jdk/sun/security/pkcs11/ec/TestECDSA.java index 7dd8904311a79..59db0a3ed0138 100644 --- a/test/jdk/sun/security/pkcs11/ec/TestECDSA.java +++ b/test/jdk/sun/security/pkcs11/ec/TestECDSA.java @@ -31,7 +31,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestECDSA - * @run main/othervm TestECDSA sm policy + * @run main/othervm -Djava.security.manager=allow TestECDSA sm policy */ import java.security.KeyFactory; diff --git a/test/jdk/sun/security/pkcs11/ec/TestECDSA2.java b/test/jdk/sun/security/pkcs11/ec/TestECDSA2.java index 92bbe83215ada..4b6cb6f14ed09 100644 --- a/test/jdk/sun/security/pkcs11/ec/TestECDSA2.java +++ b/test/jdk/sun/security/pkcs11/ec/TestECDSA2.java @@ -32,7 +32,7 @@ * jdk.crypto.cryptoki * @compile -XDignore.symbol.file TestECDSA2.java * @run main/othervm TestECDSA2 - * @run main/othervm TestECDSA2 sm + * @run main/othervm -Djava.security.manager=allow TestECDSA2 sm */ import java.math.BigInteger; diff --git a/test/jdk/sun/security/pkcs11/ec/TestECGenSpec.java b/test/jdk/sun/security/pkcs11/ec/TestECGenSpec.java index 74eca81853ed1..8e016f76d9b69 100644 --- a/test/jdk/sun/security/pkcs11/ec/TestECGenSpec.java +++ b/test/jdk/sun/security/pkcs11/ec/TestECGenSpec.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestECGenSpec - * @run main/othervm TestECGenSpec sm + * @run main/othervm -Djava.security.manager=allow TestECGenSpec sm */ import java.security.AlgorithmParameters; diff --git a/test/jdk/sun/security/pkcs11/ec/TestKeyFactory.java b/test/jdk/sun/security/pkcs11/ec/TestKeyFactory.java index ae0c84edba6da..60066f118af06 100644 --- a/test/jdk/sun/security/pkcs11/ec/TestKeyFactory.java +++ b/test/jdk/sun/security/pkcs11/ec/TestKeyFactory.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestKeyFactory - * @run main/othervm TestKeyFactory sm + * @run main/othervm -Djava.security.manager=allow TestKeyFactory sm */ import java.security.Key; diff --git a/test/jdk/sun/security/pkcs11/rsa/KeyWrap.java b/test/jdk/sun/security/pkcs11/rsa/KeyWrap.java index b2e4e31de19f1..9a44d8ff03608 100644 --- a/test/jdk/sun/security/pkcs11/rsa/KeyWrap.java +++ b/test/jdk/sun/security/pkcs11/rsa/KeyWrap.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm KeyWrap - * @run main/othervm KeyWrap sm + * @run main/othervm -Djava.security.manager=allow KeyWrap sm */ import java.security.GeneralSecurityException; diff --git a/test/jdk/sun/security/pkcs11/rsa/TestCACerts.java b/test/jdk/sun/security/pkcs11/rsa/TestCACerts.java index 524f36378bbae..c95d27bc3d8cf 100644 --- a/test/jdk/sun/security/pkcs11/rsa/TestCACerts.java +++ b/test/jdk/sun/security/pkcs11/rsa/TestCACerts.java @@ -30,7 +30,7 @@ * @library ../../../../java/security/testlibrary * @modules jdk.crypto.cryptoki * @run main/othervm TestCACerts - * @run main/othervm TestCACerts sm TestCACerts.policy + * @run main/othervm -Djava.security.manager=allow TestCACerts sm TestCACerts.policy */ // this test serves as our known answer test diff --git a/test/jdk/sun/security/pkcs11/rsa/TestKeyFactory.java b/test/jdk/sun/security/pkcs11/rsa/TestKeyFactory.java index d77efb0dcbfcf..9f9ef5dcafa64 100644 --- a/test/jdk/sun/security/pkcs11/rsa/TestKeyFactory.java +++ b/test/jdk/sun/security/pkcs11/rsa/TestKeyFactory.java @@ -29,7 +29,7 @@ * @library /test/lib .. * @modules jdk.crypto.cryptoki * @run main/othervm TestKeyFactory - * @run main/othervm TestKeyFactory sm rsakeys.ks.policy + * @run main/othervm -Djava.security.manager=allow TestKeyFactory sm rsakeys.ks.policy */ import java.io.*; diff --git a/test/jdk/sun/security/pkcs11/rsa/TestKeyPairGenerator.java b/test/jdk/sun/security/pkcs11/rsa/TestKeyPairGenerator.java index 9662db995d233..62c05ad8cf60b 100644 --- a/test/jdk/sun/security/pkcs11/rsa/TestKeyPairGenerator.java +++ b/test/jdk/sun/security/pkcs11/rsa/TestKeyPairGenerator.java @@ -31,7 +31,7 @@ * @modules jdk.crypto.cryptoki * @build jdk.test.lib.RandomFactory * @run main/othervm -Djava.security.debug=sunpkcs11 TestKeyPairGenerator - * @run main/othervm -Djava.security.debug=sunpkcs11 TestKeyPairGenerator + * @run main/othervm -Djava.security.manager=allow -Djava.security.debug=sunpkcs11 TestKeyPairGenerator * sm TestKeyPairGenerator.policy * @key randomness */ diff --git a/test/jdk/sun/security/pkcs11/rsa/TestP11KeyFactoryGetRSAKeySpec.java b/test/jdk/sun/security/pkcs11/rsa/TestP11KeyFactoryGetRSAKeySpec.java index a34c6cace20e3..ee847c56d877c 100644 --- a/test/jdk/sun/security/pkcs11/rsa/TestP11KeyFactoryGetRSAKeySpec.java +++ b/test/jdk/sun/security/pkcs11/rsa/TestP11KeyFactoryGetRSAKeySpec.java @@ -38,7 +38,7 @@ * @summary Also checks to ensure that sensitive RSA keys are correctly not exposed * @library /test/lib .. * @run main/othervm TestP11KeyFactoryGetRSAKeySpec - * @run main/othervm TestP11KeyFactoryGetRSAKeySpec sm rsakeys.ks.policy + * @run main/othervm -Djava.security.manager=allow TestP11KeyFactoryGetRSAKeySpec sm rsakeys.ks.policy * @run main/othervm -DCUSTOM_P11_CONFIG_NAME=p11-nss-sensitive.txt -DNO_DEIMOS=true -DNO_DEFAULT=true TestP11KeyFactoryGetRSAKeySpec * @modules jdk.crypto.cryptoki */ diff --git a/test/jdk/sun/security/pkcs11/rsa/TestSignatures.java b/test/jdk/sun/security/pkcs11/rsa/TestSignatures.java index 5241391d952b2..2e2b9efca42a7 100644 --- a/test/jdk/sun/security/pkcs11/rsa/TestSignatures.java +++ b/test/jdk/sun/security/pkcs11/rsa/TestSignatures.java @@ -30,7 +30,7 @@ * @key randomness * @modules jdk.crypto.cryptoki * @run main/othervm TestSignatures - * @run main/othervm TestSignatures sm rsakeys.ks.policy + * @run main/othervm -Djava.security.manager=allow TestSignatures sm rsakeys.ks.policy */ import java.io.File; diff --git a/test/jdk/sun/security/pkcs11/tls/TestKeyMaterial.java b/test/jdk/sun/security/pkcs11/tls/TestKeyMaterial.java index 451a41c3d5b9e..ad69bfeb1239b 100644 --- a/test/jdk/sun/security/pkcs11/tls/TestKeyMaterial.java +++ b/test/jdk/sun/security/pkcs11/tls/TestKeyMaterial.java @@ -30,7 +30,7 @@ * @modules java.base/sun.security.internal.spec * jdk.crypto.cryptoki * @run main/othervm TestKeyMaterial - * @run main/othervm TestKeyMaterial sm policy + * @run main/othervm -Djava.security.manager=allow TestKeyMaterial sm policy */ import java.io.BufferedReader; diff --git a/test/jdk/sun/security/pkcs11/tls/TestLeadingZeroesP11.java b/test/jdk/sun/security/pkcs11/tls/TestLeadingZeroesP11.java index b594b3e066e10..08a542b59caf9 100644 --- a/test/jdk/sun/security/pkcs11/tls/TestLeadingZeroesP11.java +++ b/test/jdk/sun/security/pkcs11/tls/TestLeadingZeroesP11.java @@ -29,7 +29,7 @@ * @author Pasi Eronen * @modules jdk.crypto.cryptoki * @run main/othervm TestLeadingZeroesP11 - * @run main/othervm TestLeadingZeroesP11 sm + * @run main/othervm -Djava.security.manager=allow TestLeadingZeroesP11 sm */ diff --git a/test/jdk/sun/security/pkcs11/tls/TestMasterSecret.java b/test/jdk/sun/security/pkcs11/tls/TestMasterSecret.java index ecbb035c470e2..816e76697ced9 100644 --- a/test/jdk/sun/security/pkcs11/tls/TestMasterSecret.java +++ b/test/jdk/sun/security/pkcs11/tls/TestMasterSecret.java @@ -31,7 +31,7 @@ * java.base/sun.security.internal.spec * jdk.crypto.cryptoki * @run main/othervm TestMasterSecret - * @run main/othervm TestMasterSecret sm TestMasterSecret.policy + * @run main/othervm -Djava.security.manager=allow TestMasterSecret sm TestMasterSecret.policy */ import java.io.BufferedReader; diff --git a/test/jdk/sun/security/pkcs11/tls/TestPRF.java b/test/jdk/sun/security/pkcs11/tls/TestPRF.java index 2bbc55552c3fc..d99c21d0e568b 100644 --- a/test/jdk/sun/security/pkcs11/tls/TestPRF.java +++ b/test/jdk/sun/security/pkcs11/tls/TestPRF.java @@ -30,7 +30,7 @@ * @modules java.base/sun.security.internal.spec * jdk.crypto.cryptoki * @run main/othervm TestPRF - * @run main/othervm TestPRF sm policy + * @run main/othervm -Djava.security.manager=allow TestPRF sm policy */ import java.io.BufferedReader; diff --git a/test/jdk/sun/security/pkcs11/tls/TestPremaster.java b/test/jdk/sun/security/pkcs11/tls/TestPremaster.java index abd2da15e340c..ebae28c996c7e 100644 --- a/test/jdk/sun/security/pkcs11/tls/TestPremaster.java +++ b/test/jdk/sun/security/pkcs11/tls/TestPremaster.java @@ -30,7 +30,7 @@ * @modules java.base/sun.security.internal.spec * jdk.crypto.cryptoki * @run main/othervm TestPremaster - * @run main/othervm TestPremaster sm policy + * @run main/othervm -Djava.security.manager=allow TestPremaster sm policy */ import java.security.Provider; diff --git a/test/jdk/sun/security/provider/PolicyFile/BadPolicyFile.java b/test/jdk/sun/security/provider/PolicyFile/BadPolicyFile.java index 17a4c5d8d7131..a1fc10d6ef6a9 100644 --- a/test/jdk/sun/security/provider/PolicyFile/BadPolicyFile.java +++ b/test/jdk/sun/security/provider/PolicyFile/BadPolicyFile.java @@ -25,7 +25,7 @@ * @test * @bug 8150468 * @summary check that a badly formatted policy file is handled correctly - * @run main/othervm BadPolicyFile + * @run main/othervm -Djava.security.manager=allow BadPolicyFile */ import java.io.File; From f840f4336db7ba7f222242e3cf112bd928af4a90 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:45 -0400 Subject: [PATCH 09/19] test for hotspot-runtime --- .../hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java | 1 + .../jtreg/runtime/logging/ProtectionDomainVerificationTest.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java b/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java index 0e5937b0980c6..807ce52d65bf2 100644 --- a/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java +++ b/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java @@ -47,6 +47,7 @@ public static void main(String args[]) throws Exception { "--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED", "-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", + "-Djava.security.manager=allow", "-Xbootclasspath/a:.", Test.class.getName()); OutputAnalyzer output = new OutputAnalyzer(pb.start()); diff --git a/test/hotspot/jtreg/runtime/logging/ProtectionDomainVerificationTest.java b/test/hotspot/jtreg/runtime/logging/ProtectionDomainVerificationTest.java index 17bbc013ca358..06f46b6eef5db 100644 --- a/test/hotspot/jtreg/runtime/logging/ProtectionDomainVerificationTest.java +++ b/test/hotspot/jtreg/runtime/logging/ProtectionDomainVerificationTest.java @@ -40,6 +40,7 @@ public static void main(String... args) throws Exception { // -Xlog:protectiondomain=trace ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:protectiondomain=trace", "-Xmx128m", + "-Djava.security.manager=allow", Hello.class.getName(), "security_manager"); new OutputAnalyzer(pb.start()) .shouldHaveExitValue(0) @@ -49,6 +50,7 @@ public static void main(String... args) throws Exception { // -Xlog:protectiondomain=debug pb = ProcessTools.createJavaProcessBuilder("-Xlog:protectiondomain=debug", "-Xmx128m", + "-Djava.security.manager=allow", Hello.class.getName(), "security_manager"); new OutputAnalyzer(pb.start()) .shouldHaveExitValue(0) From 3647b33bdd4519984857f0555fe8d867f719c64b Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:45 -0400 Subject: [PATCH 10/19] test for nio --- .../AsynchronousChannelGroup/AsExecutor.java | 2 +- .../WithSecurityManager.java | 4 ++-- .../DatagramChannel/ConnectPortZero.java | 4 ++-- .../channels/DatagramChannel/SendPortZero.java | 4 ++-- .../FileChannel/MapWithSecurityManager.java | 2 +- .../nio/channels/SocketChannel/OpenLeak.java | 2 +- .../java/nio/channels/unixdomain/Security.java | 2 +- .../java/nio/file/Files/CheckPermissions.java | 2 +- .../Files/walkFileTree/WalkWithSecurity.java | 6 +++--- .../file/WatchService/WithSecurityManager.java | 16 ++++++++-------- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java b/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java index afe2f595d871f..ae115a0c51933 100644 --- a/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java +++ b/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java @@ -29,7 +29,7 @@ * @build PrivilegedThreadFactory Attack * jdk.test.lib.util.JarUtils * @run driver SetupJar - * @run main/othervm -Xbootclasspath/a:privileged.jar AsExecutor + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:privileged.jar AsExecutor */ import java.nio.channels.AsynchronousChannelGroup; diff --git a/test/jdk/java/nio/channels/AsynchronousServerSocketChannel/WithSecurityManager.java b/test/jdk/java/nio/channels/AsynchronousServerSocketChannel/WithSecurityManager.java index ee77a3d310cef..a48ac19469df4 100644 --- a/test/jdk/java/nio/channels/AsynchronousServerSocketChannel/WithSecurityManager.java +++ b/test/jdk/java/nio/channels/AsynchronousServerSocketChannel/WithSecurityManager.java @@ -25,8 +25,8 @@ * @bug 4607272 * @summary Unit test for AsynchronousServerServerSocketChannel * @build WithSecurityManager - * @run main/othervm WithSecurityManager allow - * @run main/othervm WithSecurityManager deny + * @run main/othervm -Djava.security.manager=allow WithSecurityManager allow + * @run main/othervm -Djava.security.manager=allow WithSecurityManager deny */ import java.nio.file.Paths; diff --git a/test/jdk/java/nio/channels/DatagramChannel/ConnectPortZero.java b/test/jdk/java/nio/channels/DatagramChannel/ConnectPortZero.java index 79d243e988b76..6074d4cd543aa 100644 --- a/test/jdk/java/nio/channels/DatagramChannel/ConnectPortZero.java +++ b/test/jdk/java/nio/channels/DatagramChannel/ConnectPortZero.java @@ -54,8 +54,8 @@ * @build jdk.test.lib.net.IPSupport * @summary Check that DatagramChannel throws expected Exception when connecting * to port 0 - * @run testng/othervm ConnectPortZero - * @run testng/othervm -Djava.net.preferIPv4Stack=true ConnectPortZero + * @run testng/othervm -Djava.security.manager=allow ConnectPortZero + * @run testng/othervm -Djava.security.manager=allow -Djava.net.preferIPv4Stack=true ConnectPortZero */ public class ConnectPortZero { diff --git a/test/jdk/java/nio/channels/DatagramChannel/SendPortZero.java b/test/jdk/java/nio/channels/DatagramChannel/SendPortZero.java index 30c6c36d21882..dc3511abb34a7 100644 --- a/test/jdk/java/nio/channels/DatagramChannel/SendPortZero.java +++ b/test/jdk/java/nio/channels/DatagramChannel/SendPortZero.java @@ -55,8 +55,8 @@ * @build jdk.test.lib.net.IPSupport * @summary Check that DatagramChannel throws expected Exception when sending to * port 0 - * @run testng/othervm SendPortZero - * @run testng/othervm -Djava.net.preferIPv4Stack=true SendPortZero + * @run testng/othervm -Djava.security.manager=allow SendPortZero + * @run testng/othervm -Djava.security.manager=allow -Djava.net.preferIPv4Stack=true SendPortZero */ public class SendPortZero { diff --git a/test/jdk/java/nio/channels/FileChannel/MapWithSecurityManager.java b/test/jdk/java/nio/channels/FileChannel/MapWithSecurityManager.java index 37626cf67976b..1985799caf19c 100644 --- a/test/jdk/java/nio/channels/FileChannel/MapWithSecurityManager.java +++ b/test/jdk/java/nio/channels/FileChannel/MapWithSecurityManager.java @@ -24,7 +24,7 @@ /* @test * @bug 8236582 * @summary Tests the map method when running with a security manager - * @run main/othervm MapWithSecurityManager + * @run main/othervm -Djava.security.manager=allow MapWithSecurityManager */ import java.io.IOException; diff --git a/test/jdk/java/nio/channels/SocketChannel/OpenLeak.java b/test/jdk/java/nio/channels/SocketChannel/OpenLeak.java index 135ce9a390123..8d8673355efb5 100644 --- a/test/jdk/java/nio/channels/SocketChannel/OpenLeak.java +++ b/test/jdk/java/nio/channels/SocketChannel/OpenLeak.java @@ -26,7 +26,7 @@ * @summary SocketChannel.open(SocketAddress) leaks file descriptor if * connection cannot be established * @build OpenLeak - * @run main/othervm OpenLeak + * @run main/othervm -Djava.security.manager=allow OpenLeak */ import java.net.InetAddress; diff --git a/test/jdk/java/nio/channels/unixdomain/Security.java b/test/jdk/java/nio/channels/unixdomain/Security.java index a207cd814e94c..4cef6cef89364 100644 --- a/test/jdk/java/nio/channels/unixdomain/Security.java +++ b/test/jdk/java/nio/channels/unixdomain/Security.java @@ -26,7 +26,7 @@ * @bug 8245194 * @run main/othervm/java.security.policy=policy1 Security policy1 * @run main/othervm/java.security.policy=policy2 Security policy2 - * @run main/othervm Security policy3 + * @run main/othervm -Djava.security.manager=allow Security policy3 * @summary Security test for Unix Domain socket and server socket channels */ diff --git a/test/jdk/java/nio/file/Files/CheckPermissions.java b/test/jdk/java/nio/file/Files/CheckPermissions.java index 7908d847c052d..5a50596d847ca 100644 --- a/test/jdk/java/nio/file/Files/CheckPermissions.java +++ b/test/jdk/java/nio/file/Files/CheckPermissions.java @@ -26,7 +26,7 @@ * @summary Unit test for java.nio.file.Files * @library .. * @build CheckPermissions - * @run main/othervm CheckPermissions + * @run main/othervm -Djava.security.manager=allow CheckPermissions */ import java.nio.ByteBuffer; diff --git a/test/jdk/java/nio/file/Files/walkFileTree/WalkWithSecurity.java b/test/jdk/java/nio/file/Files/walkFileTree/WalkWithSecurity.java index 9cfc682c956ce..2e58c92f54213 100644 --- a/test/jdk/java/nio/file/Files/walkFileTree/WalkWithSecurity.java +++ b/test/jdk/java/nio/file/Files/walkFileTree/WalkWithSecurity.java @@ -25,9 +25,9 @@ * @bug 6876541 * @summary Test Files.walkFileTree in the presence of a security manager * @build WalkWithSecurity - * @run main/othervm WalkWithSecurity grantAll.policy pass - * @run main/othervm WalkWithSecurity denyAll.policy fail - * @run main/othervm WalkWithSecurity grantTopOnly.policy top_only + * @run main/othervm -Djava.security.manager=allow WalkWithSecurity grantAll.policy pass + * @run main/othervm -Djava.security.manager=allow WalkWithSecurity denyAll.policy fail + * @run main/othervm -Djava.security.manager=allow WalkWithSecurity grantTopOnly.policy top_only */ import java.nio.file.*; diff --git a/test/jdk/java/nio/file/WatchService/WithSecurityManager.java b/test/jdk/java/nio/file/WatchService/WithSecurityManager.java index e165da54fb4be..14cab20544093 100644 --- a/test/jdk/java/nio/file/WatchService/WithSecurityManager.java +++ b/test/jdk/java/nio/file/WatchService/WithSecurityManager.java @@ -26,14 +26,14 @@ * @summary Unit test for Watchable#register's permission checks * @modules jdk.unsupported * @build WithSecurityManager - * @run main/othervm WithSecurityManager denyAll.policy - fail - * @run main/othervm WithSecurityManager denyAll.policy tree fail - * @run main/othervm WithSecurityManager grantDirOnly.policy - pass - * @run main/othervm WithSecurityManager grantDirOnly.policy tree fail - * @run main/othervm WithSecurityManager grantDirAndOneLevel.policy - pass - * @run main/othervm WithSecurityManager grantDirAndOneLevel.policy tree fail - * @run main/othervm WithSecurityManager grantDirAndTree.policy - pass - * @run main/othervm WithSecurityManager grantDirAndTree.policy tree pass + * @run main/othervm -Djava.security.manager=allow WithSecurityManager denyAll.policy - fail + * @run main/othervm -Djava.security.manager=allow WithSecurityManager denyAll.policy tree fail + * @run main/othervm -Djava.security.manager=allow WithSecurityManager grantDirOnly.policy - pass + * @run main/othervm -Djava.security.manager=allow WithSecurityManager grantDirOnly.policy tree fail + * @run main/othervm -Djava.security.manager=allow WithSecurityManager grantDirAndOneLevel.policy - pass + * @run main/othervm -Djava.security.manager=allow WithSecurityManager grantDirAndOneLevel.policy tree fail + * @run main/othervm -Djava.security.manager=allow WithSecurityManager grantDirAndTree.policy - pass + * @run main/othervm -Djava.security.manager=allow WithSecurityManager grantDirAndTree.policy tree pass */ import java.nio.file.*; From 674abd15ec8cc2cd3b80ca1f1e566267ce062e4e Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:46 -0400 Subject: [PATCH 11/19] test for xml --- .../jaxp/functional/catalog/CatalogReferCircularityTest.java | 2 +- .../xml/jaxp/functional/catalog/DefaultFeaturesTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/DeferFeatureTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/DelegatePublicTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/DelegateSystemTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/DelegateUriTest.java | 2 +- test/jaxp/javax/xml/jaxp/functional/catalog/GroupTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/LoadCatalogTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/NextCatalogTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/NormalizationTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/PreferFeatureTest.java | 2 +- test/jaxp/javax/xml/jaxp/functional/catalog/PreferTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/PublicFamilyTest.java | 2 +- test/jaxp/javax/xml/jaxp/functional/catalog/PublicTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/ResolveFeatureTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/RewriteSystemTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/RewriteUriTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/SpecifyCatalogTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/SystemFamilyTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/SystemSuffixTest.java | 2 +- test/jaxp/javax/xml/jaxp/functional/catalog/SystemTest.java | 2 +- .../jaxp/javax/xml/jaxp/functional/catalog/UriFamilyTest.java | 2 +- .../jaxp/javax/xml/jaxp/functional/catalog/UriSuffixTest.java | 2 +- test/jaxp/javax/xml/jaxp/functional/catalog/UriTest.java | 2 +- .../javax/xml/jaxp/functional/catalog/UrnUnwrappingTest.java | 2 +- .../xml/jaxp/functional/catalog/ValidateCatalogTest.java | 2 +- .../functional/javax/xml/datatype/ptests/DurationTest.java | 2 +- .../javax/xml/datatype/ptests/FactoryNewInstanceTest.java | 2 +- .../javax/xml/datatype/ptests/XMLGregorianCalendarTest.java | 2 +- .../functional/javax/xml/parsers/ptests/DBFNamespaceTest.java | 2 +- .../javax/xml/parsers/ptests/DocumentBuilderFactoryTest.java | 2 +- .../javax/xml/parsers/ptests/DocumentBuilderImpl01.java | 2 +- .../javax/xml/parsers/ptests/FactoryConfErrorTest.java | 2 +- .../javax/xml/parsers/ptests/SAXFactoryNewInstanceTest.java | 2 +- .../javax/xml/parsers/ptests/SAXParserFactTest.java | 2 +- .../functional/javax/xml/parsers/ptests/SAXParserTest.java | 2 +- .../functional/javax/xml/parsers/ptests/SAXParserTest02.java | 2 +- .../functional/javax/xml/parsers/ptests/SAXParserTest03.java | 2 +- .../xml/stream/ptests/XMLEventFactoryNewInstanceTest.java | 2 +- .../xml/stream/ptests/XMLInputFactoryNewInstanceTest.java | 2 +- .../xml/stream/ptests/XMLOutputFactoryNewInstanceTest.java | 2 +- .../functional/javax/xml/transform/ptests/Bug6384418Test.java | 2 +- .../functional/javax/xml/transform/ptests/DOMResultTest.java | 2 +- .../javax/xml/transform/ptests/ErrorListenerTest.java | 2 +- .../functional/javax/xml/transform/ptests/SAXSourceTest.java | 2 +- .../javax/xml/transform/ptests/SAXTFactoryTest.java | 2 +- .../javax/xml/transform/ptests/StreamResultTest.java | 2 +- .../javax/xml/transform/ptests/TfClearParamTest.java | 2 +- .../functional/javax/xml/transform/ptests/TransformTest.java | 2 +- .../javax/xml/transform/ptests/TransformerExcpTest.java | 2 +- .../javax/xml/transform/ptests/TransformerFactoryTest.java | 2 +- .../javax/xml/transform/ptests/TransformerTest.java | 2 +- .../javax/xml/transform/ptests/TransformerTest02.java | 2 +- .../javax/xml/transform/ptests/TransformerTest03.java | 2 +- .../javax/xml/transform/ptests/URIResolverTest.java | 2 +- .../javax/xml/transform/ptests/othervm/TFCErrorTest.java | 2 +- .../javax/xml/validation/ptests/SchemaFactoryTest.java | 2 +- .../javax/xml/validation/ptests/TypeInfoProviderTest.java | 2 +- .../javax/xml/validation/ptests/ValidatorHandlerTest.java | 2 +- .../functional/javax/xml/validation/ptests/ValidatorTest.java | 2 +- .../javax/xml/xpath/ptests/XPathEvaluationResultTest.java | 2 +- .../javax/xml/xpath/ptests/XPathExpressionTest.java | 2 +- .../functional/javax/xml/xpath/ptests/XPathFactoryTest.java | 2 +- .../javax/xml/xpath/ptests/XPathFunctionResolverTest.java | 2 +- .../xml/jaxp/functional/javax/xml/xpath/ptests/XPathTest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/AttrTest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/CommentTest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/DocumentTest.java | 2 +- .../jaxp/functional/org/w3c/dom/ptests/DocumentTypeTest.java | 2 +- .../functional/org/w3c/dom/ptests/DomImplementationTest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/ElementTest.java | 2 +- .../jaxp/functional/org/w3c/dom/ptests/EntityChildTest.java | 2 +- .../jaxp/functional/org/w3c/dom/ptests/NamedNodeMapTest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/NodeListTest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/NodeTest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/NotationTest.java | 2 +- .../javax/xml/jaxp/functional/org/w3c/dom/ptests/PITest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/TextTest.java | 2 +- .../xml/jaxp/functional/org/w3c/dom/ptests/TypeInfoTest.java | 2 +- .../xml/jaxp/functional/org/xml/sax/ptests/AttrImplTest.java | 2 +- .../jaxp/functional/org/xml/sax/ptests/AttributesNSTest.java | 2 +- .../jaxp/functional/org/xml/sax/ptests/AttributesTest.java | 2 +- .../functional/org/xml/sax/ptests/ContentHandlerTest.java | 2 +- .../functional/org/xml/sax/ptests/DefaultHandlerTest.java | 2 +- .../xml/jaxp/functional/org/xml/sax/ptests/EHFatalTest.java | 2 +- .../xml/jaxp/functional/org/xml/sax/ptests/NSSupportTest.java | 2 +- .../xml/jaxp/functional/org/xml/sax/ptests/NSTableTest.java | 2 +- .../jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java | 2 +- .../xml/jaxp/functional/org/xml/sax/ptests/ResolverTest.java | 2 +- .../functional/org/xml/sax/ptests/SAXParserNSTableTest.java | 2 +- .../jaxp/functional/org/xml/sax/ptests/XMLFilterCBTest.java | 2 +- .../xml/jaxp/functional/org/xml/sax/ptests/XMLFilterTest.java | 2 +- .../functional/org/xml/sax/ptests/XMLReaderAdapterTest.java | 2 +- .../functional/org/xml/sax/ptests/XMLReaderFactoryTest.java | 2 +- .../functional/org/xml/sax/ptests/XMLReaderNSTableTest.java | 2 +- .../xml/jaxp/functional/org/xml/sax/ptests/XMLReaderTest.java | 2 +- test/jaxp/javax/xml/jaxp/functional/test/astro/AstroTest.java | 2 +- .../javax/xml/jaxp/functional/test/astro/DocumentLSTest.java | 2 +- .../xml/jaxp/functional/test/astro/NamespaceContextTest.java | 2 +- .../jaxp/javax/xml/jaxp/functional/test/astro/SAX201Test.java | 2 +- .../xml/jaxp/functional/test/astro/SchemaValidationTest.java | 2 +- .../javax/xml/jaxp/functional/test/astro/XPathAPITest.java | 2 +- .../jaxp/functional/test/auctionportal/AuctionController.java | 2 +- .../functional/test/auctionportal/AuctionItemRepository.java | 2 +- .../jaxp/functional/test/auctionportal/UserController.java | 2 +- .../javax/xml/jaxp/functional/test/gaptest/Bug4511326.java | 2 +- .../javax/xml/jaxp/functional/test/gaptest/Bug4512806.java | 2 +- .../javax/xml/jaxp/functional/test/gaptest/Bug4515047.java | 2 +- .../javax/xml/jaxp/functional/test/gaptest/Bug4515660.java | 2 +- .../javax/xml/jaxp/functional/test/gaptest/Bug4693341.java | 2 +- .../javax/xml/jaxp/functional/test/gaptest/Bug4848653.java | 2 +- .../javax/xml/jaxp/functional/test/gaptest/Bug4858685.java | 2 +- .../javax/xml/jaxp/unittest/catalog/CatalogAccessTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport1.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport2.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport3.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport4.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport5.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/common/Bug6350682.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/common/Bug6723276Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/common/Bug7143711Test.java | 2 +- .../javax/xml/jaxp/unittest/common/CDataChunkSizeTest.java | 2 +- .../xml/jaxp/unittest/common/EncodingErrorsReportingTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/common/Sources.java | 2 +- .../xml/jaxp/unittest/common/TransformationWarningsTest.java | 2 +- .../xml/jaxp/unittest/common/ValidationWarningsTest.java | 2 +- .../xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6320118.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/datatype/Bug6937951Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/datatype/Bug6937964Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/datatype/Bug7042647Test.java | 2 +- .../javax/xml/jaxp/unittest/datatype/DatatypeFactoryTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/datatype/DurationTest.java | 2 +- .../javax/xml/jaxp/unittest/datatype/FactoryFindTest.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/datatype/JDK8068839Test.java | 2 +- .../xml/jaxp/unittest/datatype/XMLGregorianCalendarTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915524.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915748.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966082.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966138.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966142.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966143.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug6339023.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug6355326.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug6367542.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug6520131.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug6521260.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug6582545Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/Bug6879614Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/CR6333993Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/CR6517707Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/CR6517717Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/CR6909336Test.java | 2 +- .../javax/xml/jaxp/unittest/dom/DOMConfigurationTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/DOMXPathTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/ElementTraversal.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/JdkXmlDomTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/TCKEncodingTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug4973153.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6290947.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6354955.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6376823.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6710741Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTCKTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTest.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/dom/ls/LSSerializerTest.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/parsers/BaseParsingTest.java | 2 +- .../xml/jaxp/unittest/parsers/Bug4674384_MAX_OCCURS_Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4934208.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4967002.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4985486.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991020.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991946.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5010072.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5025825.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6309988.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6341770.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6361283.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6506304Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6518733.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6564400.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6573786.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6594813.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6608841.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6690015.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6760982.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6849942Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7157608Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7166896Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8003147Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8073385.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/parsers/FactoryFindTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/parsers/HandleError.java | 2 +- .../javax/xml/jaxp/unittest/parsers/ParseEmptyStream.java | 2 +- .../javax/xml/jaxp/unittest/parsers/SupplementaryChars.java | 2 +- .../xml/jaxp/unittest/parsers/xinclude/Bug6794483Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/sax/Attributes2ImplTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/sax/Bug6889654Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/sax/Bug6925410Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/sax/Bug6949607Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/sax/Bug6992561Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/sax/Bug7057778Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/sax/DefaultHandler2Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/sax/NSSupportTest.java | 2 +- .../javax/xml/jaxp/unittest/sax/SymbolTableResetTest.java | 4 ++-- test/jaxp/javax/xml/jaxp/unittest/sax/XMLReaderTest.java | 2 +- .../stream/AttributeLocalNameTest/AttributeLocalNameTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/stream/Bug6370703.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/stream/Bug6378422.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/stream/Bug6380870.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/stream/Bug6489502.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/stream/Bug6509774.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/stream/Bug6688002Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/stream/Bug6976938Test.java | 2 +- .../xml/jaxp/unittest/stream/CoalesceTest/CoalesceTest.java | 2 +- .../xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java | 2 +- .../xml/jaxp/unittest/stream/EventReaderDelegateTest.java | 2 +- .../xml/jaxp/unittest/stream/EventsTest/Issue41Test.java | 2 +- .../xml/jaxp/unittest/stream/EventsTest/Issue48Test.java | 2 +- .../xml/jaxp/unittest/stream/EventsTest/Issue53Test.java | 2 +- .../xml/jaxp/unittest/stream/EventsTest/Issue58Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/stream/FactoryFindTest.java | 2 +- .../javax/xml/jaxp/unittest/stream/IgnoreExternalDTDTest.java | 2 +- .../ProcessingInstructionTest/ProcessingInstructionTest.java | 2 +- .../xml/jaxp/unittest/stream/StreamReaderDelegateTest.java | 2 +- .../javax/xml/jaxp/unittest/stream/XMLEventLocationTest.java | 2 +- .../jaxp/unittest/stream/XMLEventReaderTest/Bug6489890.java | 2 +- .../jaxp/unittest/stream/XMLEventReaderTest/Bug6555001.java | 2 +- .../unittest/stream/XMLEventReaderTest/Bug6586466Test.java | 2 +- .../unittest/stream/XMLEventReaderTest/Bug6613059Test.java | 2 +- .../unittest/stream/XMLEventReaderTest/Bug6668115Test.java | 2 +- .../unittest/stream/XMLEventReaderTest/Bug6846133Test.java | 2 +- .../jaxp/unittest/stream/XMLEventReaderTest/Bug8153781.java | 2 +- .../jaxp/unittest/stream/XMLEventReaderTest/Issue40Test.java | 2 +- .../jaxp/unittest/stream/XMLEventReaderTest/JDK8201138.java | 2 +- .../jaxp/unittest/stream/XMLEventReaderTest/JDK8209615.java | 2 +- .../stream/XMLEventWriterTest/ReaderToWriterTest.java | 2 +- .../stream/XMLEventWriterTest/XMLEventWriterTest.java | 2 +- .../unittest/stream/XMLInputFactoryTest/Bug6756677Test.java | 2 +- .../unittest/stream/XMLInputFactoryTest/Bug6909759Test.java | 2 +- .../unittest/stream/XMLInputFactoryTest/IssueTracker38.java | 2 +- .../unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java | 2 +- .../XMLOutputFactoryTest/DuplicateNSDeclarationTest.java | 2 +- .../stream/XMLOutputFactoryTest/StreamResultTest.java | 2 +- .../jaxp/unittest/stream/XMLResolverTest/XMLResolverTest.java | 2 +- .../unittest/stream/XMLStreamExceptionTest/ExceptionTest.java | 2 +- .../jaxp/unittest/stream/XMLStreamFilterTest/Bug6481615.java | 2 +- .../jaxp/unittest/stream/XMLStreamFilterTest/Bug6481678.java | 2 +- .../jaxp/unittest/stream/XMLStreamFilterTest/HasNextTest.java | 2 +- .../xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java | 2 +- .../jaxp/unittest/stream/XMLStreamReaderTest/Bug6388460.java | 2 +- .../unittest/stream/XMLStreamReaderTest/Bug6472982Test.java | 2 +- .../unittest/stream/XMLStreamReaderTest/Bug6767322Test.java | 2 +- .../unittest/stream/XMLStreamReaderTest/Bug6847819Test.java | 2 +- .../xml/jaxp/unittest/stream/XMLStreamReaderTest/BugTest.java | 2 +- .../stream/XMLStreamReaderTest/DefaultAttributeTest.java | 2 +- .../unittest/stream/XMLStreamReaderTest/DoubleXmlnsTest.java | 2 +- .../unittest/stream/XMLStreamReaderTest/IsValidatingTest.java | 2 +- .../jaxp/unittest/stream/XMLStreamReaderTest/Issue44Test.java | 2 +- .../jaxp/unittest/stream/XMLStreamReaderTest/Issue47Test.java | 2 +- .../unittest/stream/XMLStreamReaderTest/IssueTracker24.java | 2 +- .../unittest/stream/XMLStreamReaderTest/IssueTracker35.java | 2 +- .../unittest/stream/XMLStreamReaderTest/IssueTracker70.java | 2 +- .../stream/XMLStreamReaderTest/Jsr173MR1Req5Test.java | 2 +- .../stream/XMLStreamReaderTest/Jsr173MR1Req8Test.java | 2 +- .../unittest/stream/XMLStreamReaderTest/NamespaceTest.java | 2 +- .../unittest/stream/XMLStreamReaderTest/StreamReaderTest.java | 2 +- .../unittest/stream/XMLStreamReaderTest/SupportDTDTest.java | 2 +- .../unittest/stream/XMLStreamReaderTest/VoiceXMLDTDTest.java | 2 +- .../jaxp/unittest/stream/XMLStreamReaderTest/XML11Test.java | 2 +- .../stream/XMLStreamWriterTest/AttributeEscapeTest.java | 2 +- .../jaxp/unittest/stream/XMLStreamWriterTest/Bug6452107.java | 2 +- .../unittest/stream/XMLStreamWriterTest/Bug6600882Test.java | 2 +- .../unittest/stream/XMLStreamWriterTest/Bug6675332Test.java | 2 +- .../unittest/stream/XMLStreamWriterTest/Bug7037352Test.java | 2 +- .../jaxp/unittest/stream/XMLStreamWriterTest/DomUtilTest.java | 2 +- .../unittest/stream/XMLStreamWriterTest/EmptyElementTest.java | 2 +- .../unittest/stream/XMLStreamWriterTest/EncodingTest.java | 2 +- .../unittest/stream/XMLStreamWriterTest/NamespaceTest.java | 2 +- .../stream/XMLStreamWriterTest/NullUriDetectionTest.java | 2 +- .../unittest/stream/XMLStreamWriterTest/SqeLinuxTest.java | 2 +- .../unittest/stream/XMLStreamWriterTest/SurrogatesTest.java | 2 +- .../stream/XMLStreamWriterTest/UnprefixedNameTest.java | 2 +- .../jaxp/unittest/stream/XMLStreamWriterTest/WriterTest.java | 2 +- .../stream/XMLStreamWriterTest/XMLStreamWriterTest.java | 2 +- .../javax/xml/jaxp/unittest/transform/Bug4693341Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug4892774.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug5073477.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6175602.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6206491.java | 2 +- .../javax/xml/jaxp/unittest/transform/Bug6216226Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6311448.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6384805.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6465722.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6467808.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490380.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490921.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6513892.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6537167.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6540545.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6551616.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6559595.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6565260.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/Bug6940416.java | 2 +- .../javax/xml/jaxp/unittest/transform/BugDB12665704Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/CLITest.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6401137Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6551600Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6577667Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6652519Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6689809Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6905829Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6935697Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6941869Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR6957215Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/CR7098746Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/DOMResultTest.java | 2 +- .../javax/xml/jaxp/unittest/transform/FactoryFindTest.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/Issue2204Test.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/Issue2290Test.java | 2 +- .../xml/jaxp/unittest/transform/NamespacePrefixTest.java | 2 +- .../javax/xml/jaxp/unittest/transform/OpenJDK100017Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/SAX2DOMTest.java | 2 +- .../xml/jaxp/unittest/transform/SecureProcessingTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/transform/SourceTest.java | 2 +- .../javax/xml/jaxp/unittest/transform/StAXSourceTest.java | 2 +- .../javax/xml/jaxp/unittest/transform/StylesheetTest.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/TemplatesTest.java | 2 +- .../xml/jaxp/unittest/transform/TransformerFactoryTest.java | 2 +- .../javax/xml/jaxp/unittest/transform/TransformerTest.java | 2 +- .../javax/xml/jaxp/unittest/transform/XSLTFunctionsTest.java | 2 +- .../javax/xml/jaxp/unittest/transform/sax/Bug6451633.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/transform/sort/SortTest.java | 2 +- .../javax/xml/jaxp/unittest/validation/AnyElementTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966232.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966254.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969042.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969089.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969110.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969689.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969692.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969693.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969695.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969732.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970380.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970383.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970400.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970402.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970951.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971605.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971607.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4972882.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4986844.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4987574.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988267.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988268.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988387.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4996446.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug4997818.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug5011500.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug5072946.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6378043.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6449797.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6457662.java | 2 +- .../javax/xml/jaxp/unittest/validation/Bug6467424Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6483188.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6493687.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6509668.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6526547.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6531160.java | 2 +- .../javax/xml/jaxp/unittest/validation/Bug6695843Test.java | 2 +- .../javax/xml/jaxp/unittest/validation/Bug6773084Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/Bug6859210.java | 2 +- .../javax/xml/jaxp/unittest/validation/Bug6925531Test.java | 4 ++-- .../javax/xml/jaxp/unittest/validation/Bug6946312Test.java | 2 +- .../javax/xml/jaxp/unittest/validation/Bug6954738_Test.java | 2 +- .../javax/xml/jaxp/unittest/validation/CR6708840Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.java | 2 +- .../jaxp/javax/xml/jaxp/unittest/validation/Issue682Test.java | 2 +- .../javax/xml/jaxp/unittest/validation/IssueTracker30.java | 2 +- .../javax/xml/jaxp/unittest/validation/JaxpIssue43Test.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue49.java | 2 +- .../xml/jaxp/unittest/validation/LargeMaxOccursTest.java | 2 +- .../javax/xml/jaxp/unittest/validation/MultiOccursTest.java | 2 +- .../jaxp/unittest/validation/MultiOccursUnboundedTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/validation/OccursTest.java | 2 +- .../xml/jaxp/unittest/validation/OccursUnboundedTest.java | 2 +- .../xml/jaxp/unittest/validation/OccursWildcardTest.java | 2 +- .../xml/jaxp/unittest/validation/OccursWildcardUnbounded.java | 2 +- .../xml/jaxp/unittest/validation/ParticlesId005Test.java | 2 +- .../xml/jaxp/unittest/validation/ParticlesIg004Test.java | 2 +- .../javax/xml/jaxp/unittest/validation/ParticlesQ013Test.java | 2 +- .../javax/xml/jaxp/unittest/validation/TCKGroupA008Test.java | 2 +- .../javax/xml/jaxp/unittest/validation/ValidatorTest.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6943252Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6963124Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6963468Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6964720Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6967214Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6970890Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6971190Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6974551Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6975265Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6977201Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug6989956Test.java | 2 +- .../xml/jaxp/unittest/validation/tck/Bug7014246Test.java | 2 +- .../javax/xml/jaxp/unittest/validation/tck/ParticleTest.java | 2 +- .../javax/xml/jaxp/unittest/validation/tck/RegexWord.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991857.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991939.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992788.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992793.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992805.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/xpath/ClassLoaderTest.java | 2 +- .../javax/xml/jaxp/unittest/xpath/SecureProcessingTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/xpath/XPathAnyTypeTest.java | 2 +- .../javax/xml/jaxp/unittest/xpath/XPathExpAnyTypeTest.java | 2 +- test/jaxp/javax/xml/jaxp/unittest/xpath/XPathTest.java | 2 +- .../jdk/javax/xml/jaxp/transform/8004476/XPathExFuncTest.java | 2 +- test/jdk/javax/xml/jaxp/transform/8004476/XSLTExFuncTest.java | 2 +- 423 files changed, 425 insertions(+), 425 deletions(-) diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/CatalogReferCircularityTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/CatalogReferCircularityTest.java index 21a6780bb8d3c..0414d28502cf7 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/CatalogReferCircularityTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/CatalogReferCircularityTest.java @@ -35,7 +35,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.CatalogReferCircularityTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogReferCircularityTest * @run testng/othervm catalog.CatalogReferCircularityTest * @summary Via nextCatalog entry, the catalog reference chain may be * a (partial) closed circuit. For instance, a catalog may use itself diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/DefaultFeaturesTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/DefaultFeaturesTest.java index 0cc05e97da0d2..4f59f77a58fa3 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/DefaultFeaturesTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/DefaultFeaturesTest.java @@ -36,7 +36,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.DefaultFeaturesTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.DefaultFeaturesTest * @run testng/othervm catalog.DefaultFeaturesTest * @summary This case tests if the default feature values are expected. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/DeferFeatureTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/DeferFeatureTest.java index 2ee5dafa901c6..666bb91c7860c 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/DeferFeatureTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/DeferFeatureTest.java @@ -48,7 +48,7 @@ * @bug 8077931 8176405 * @library /javax/xml/jaxp/libs * @modules java.xml/javax.xml.catalog:open - * @run testng/othervm -DrunSecMngr=true catalog.DeferFeatureTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.DeferFeatureTest * @run testng/othervm catalog.DeferFeatureTest * @summary This case tests whether the catalogs specified in delegateSystem, * delegatePublic, delegateURI and nextCatalog entries are used lazily diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/DelegatePublicTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/DelegatePublicTest.java index b20aba8dbf4fd..62aa2fbec174f 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/DelegatePublicTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/DelegatePublicTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.DelegatePublicTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.DelegatePublicTest * @run testng/othervm catalog.DelegatePublicTest * @summary Get matched URIs from DelegatePublic entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/DelegateSystemTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/DelegateSystemTest.java index e8452622462a0..47cad5616c7c6 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/DelegateSystemTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/DelegateSystemTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.DelegateSystemTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.DelegateSystemTest * @run testng/othervm catalog.DelegateSystemTest * @summary Get matched URIs from delegateSystem entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/DelegateUriTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/DelegateUriTest.java index aa8d00efa1fec..e576559dcc17a 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/DelegateUriTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/DelegateUriTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.DelegateUriTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.DelegateUriTest * @run testng/othervm catalog.DelegateUriTest * @summary Get matched URIs from delegateURI entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/GroupTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/GroupTest.java index 80772f98927a6..355fa68f0bd2c 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/GroupTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/GroupTest.java @@ -39,7 +39,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.GroupTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.GroupTest * @run testng/othervm catalog.GroupTest * @summary Get matched URIs from system, public and uri entries respectively, * and some of the entries are enclosed by group entries. diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/LoadCatalogTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/LoadCatalogTest.java index b2fa3a94ce8a8..d12720c2391bd 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/LoadCatalogTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/LoadCatalogTest.java @@ -42,7 +42,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.LoadCatalogTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.LoadCatalogTest * @run testng/othervm catalog.LoadCatalogTest * @summary When catalog resolver loads catalog files, the current catalog file * and the catalog files specified by the nextCatalog entries may not diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/NextCatalogTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/NextCatalogTest.java index 4dfc4d7186d05..f134f0d43910f 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/NextCatalogTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/NextCatalogTest.java @@ -39,7 +39,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.NextCatalogTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.NextCatalogTest * @run testng/othervm catalog.NextCatalogTest * @summary Get matched URIs from system, public and uri entries respectively, * but some of the entries are defined in none-current catalog files. diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/NormalizationTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/NormalizationTest.java index d66941940cf01..33e91f6494e6e 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/NormalizationTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/NormalizationTest.java @@ -39,7 +39,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.NormalizationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.NormalizationTest * @run testng/othervm catalog.NormalizationTest * @summary Before matching identifiers and URI references, it has to normalize * the passed identifiers and URI references. And then the catalog diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/PreferFeatureTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/PreferFeatureTest.java index 3f783bebbe71b..61235a725790d 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/PreferFeatureTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/PreferFeatureTest.java @@ -40,7 +40,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.PreferFeatureTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.PreferFeatureTest * @run testng/othervm catalog.PreferFeatureTest * @summary This case tests how does the feature affect the catalog resolution, * and tests the priority between this feature and attribute prefer diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/PreferTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/PreferTest.java index c9812ead83d5a..59a8562275308 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/PreferTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/PreferTest.java @@ -36,7 +36,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.PreferTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.PreferTest * @run testng/othervm catalog.PreferTest * @summary Get matched URIs from system and public family entries, which * specify the prefer attribute. It tests how does the prefer attribute diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/PublicFamilyTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/PublicFamilyTest.java index 68081e291998e..9c1894e14cec3 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/PublicFamilyTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/PublicFamilyTest.java @@ -37,7 +37,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.PublicFamilyTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.PublicFamilyTest * @run testng/othervm catalog.PublicFamilyTest * @summary Get matched URIs from public and delegatePublic entries. * It tests the resolution priorities among the public family entries. diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/PublicTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/PublicTest.java index f7a3ebd4376bf..b99fe0be99c45 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/PublicTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/PublicTest.java @@ -39,7 +39,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.PublicTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.PublicTest * @run testng/othervm catalog.PublicTest * @summary Get matched URIs from public entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/ResolveFeatureTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/ResolveFeatureTest.java index 7714e66ea1263..128d0982db726 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/ResolveFeatureTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/ResolveFeatureTest.java @@ -46,7 +46,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.ResolveFeatureTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.ResolveFeatureTest * @run testng/othervm catalog.ResolveFeatureTest * @summary This case tests how does resolve feature affect the catalog * resolution. diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/RewriteSystemTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/RewriteSystemTest.java index c1a4266882775..748a157742482 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/RewriteSystemTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/RewriteSystemTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.RewriteSystemTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.RewriteSystemTest * @run testng/othervm catalog.RewriteSystemTest * @summary Get matched URIs from rewriteSystem entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/RewriteUriTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/RewriteUriTest.java index f4777dbaaf097..60b4c950a62b2 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/RewriteUriTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/RewriteUriTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.RewriteUriTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.RewriteUriTest * @run testng/othervm catalog.RewriteUriTest * @summary Get matched URIs from rewriteURI entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/SpecifyCatalogTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/SpecifyCatalogTest.java index e81a84b020ba2..82bdc8022f40f 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/SpecifyCatalogTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/SpecifyCatalogTest.java @@ -44,7 +44,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.SpecifyCatalogTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.SpecifyCatalogTest * @run testng/othervm catalog.SpecifyCatalogTest * @summary This case tests how to specify the catalog files. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/SystemFamilyTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/SystemFamilyTest.java index 0c62b7d72acbc..c9480dd2db385 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/SystemFamilyTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/SystemFamilyTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.SystemFamilyTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.SystemFamilyTest * @run testng/othervm catalog.SystemFamilyTest * @summary Get matched URIs from system, rewriteSystem, systemSuffix and * delegateSystem entries. It tests the resolution priorities among diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/SystemSuffixTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/SystemSuffixTest.java index 6b83fdc306e61..902b5237b8651 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/SystemSuffixTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/SystemSuffixTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.SystemSuffixTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.SystemSuffixTest * @run testng/othervm catalog.SystemSuffixTest * @summary Get matched URIs from systemSuffix entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/SystemTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/SystemTest.java index 4be1e621e17be..f0b6d4d26ada4 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/SystemTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/SystemTest.java @@ -39,7 +39,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.SystemTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.SystemTest * @run testng/othervm catalog.SystemTest * @summary Get matched URIs from system entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/UriFamilyTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/UriFamilyTest.java index 7e7d1c28e82b9..f96bc09478093 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/UriFamilyTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/UriFamilyTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.UriFamilyTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.UriFamilyTest * @run testng/othervm catalog.UriFamilyTest * @summary Get matched URIs from uri, rewriteURI, uriSuffix and delegateURI * entries. It tests the resolution priorities among the uri family diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/UriSuffixTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/UriSuffixTest.java index c27094fda84c4..42bcb95e10993 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/UriSuffixTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/UriSuffixTest.java @@ -38,7 +38,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.UriSuffixTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.UriSuffixTest * @run testng/othervm catalog.UriSuffixTest * @summary Get matched URIs from rewriteURI entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/UriTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/UriTest.java index 6b6976d6d9e43..360539eda4397 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/UriTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/UriTest.java @@ -41,7 +41,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.UriTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.UriTest * @run testng/othervm catalog.UriTest * @summary Get matched URIs from uri entries. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/UrnUnwrappingTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/UrnUnwrappingTest.java index dbdcb446fa767..dd9ad54e8a1fd 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/UrnUnwrappingTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/UrnUnwrappingTest.java @@ -36,7 +36,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.UrnUnwrappingTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.UrnUnwrappingTest * @run testng/othervm catalog.UrnUnwrappingTest * @summary If the passed public identifier is started with "urn:publicid:", * it has to be regarded as URN and normalized. And then the catalog diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/ValidateCatalogTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/ValidateCatalogTest.java index dc7bf7a7e7b03..0ec655f5aa874 100644 --- a/test/jaxp/javax/xml/jaxp/functional/catalog/ValidateCatalogTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/catalog/ValidateCatalogTest.java @@ -39,7 +39,7 @@ * @test * @bug 8077931 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true catalog.ValidateCatalogTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.ValidateCatalogTest * @run testng/othervm catalog.ValidateCatalogTest * @summary A legal catalog file must be well-formed XML, the root element * must be catalog, and the naming space of the root element must be diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/DurationTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/DurationTest.java index 057414557a05d..bdd6a4e78bfa1 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/DurationTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/DurationTest.java @@ -53,7 +53,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.datatype.ptests.DurationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.datatype.ptests.DurationTest * @run testng/othervm javax.xml.datatype.ptests.DurationTest * @summary Class containing the test cases for Duration. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/FactoryNewInstanceTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/FactoryNewInstanceTest.java index f00259f613b95..06c1a847d53a3 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/FactoryNewInstanceTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/FactoryNewInstanceTest.java @@ -42,7 +42,7 @@ * @test * @bug 8169778 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.datatype.ptests.FactoryNewInstanceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.datatype.ptests.FactoryNewInstanceTest * @run testng/othervm javax.xml.datatype.ptests.FactoryNewInstanceTest * @summary Tests for DatatypeFactory.newInstance(factoryClassName , classLoader) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/XMLGregorianCalendarTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/XMLGregorianCalendarTest.java index 2f0281013fa60..a626c1ad02cf8 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/XMLGregorianCalendarTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/datatype/ptests/XMLGregorianCalendarTest.java @@ -49,7 +49,7 @@ * @test * @bug 5049592 5041845 5048932 5064587 5040542 5049531 5049528 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.datatype.ptests.XMLGregorianCalendarTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.datatype.ptests.XMLGregorianCalendarTest * @run testng/othervm javax.xml.datatype.ptests.XMLGregorianCalendarTest * @summary Class containing the test cases for XMLGregorianCalendar */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DBFNamespaceTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DBFNamespaceTest.java index be2dcba2f4e63..65d42c83dc348 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DBFNamespaceTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DBFNamespaceTest.java @@ -48,7 +48,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.DBFNamespaceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.DBFNamespaceTest * @run testng/othervm javax.xml.parsers.ptests.DBFNamespaceTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderFactoryTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderFactoryTest.java index c4d1aff87ff2a..2743b4bac5345 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderFactoryTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderFactoryTest.java @@ -74,7 +74,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.DocumentBuilderFactoryTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.DocumentBuilderFactoryTest * @run testng/othervm javax.xml.parsers.ptests.DocumentBuilderFactoryTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderImpl01.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderImpl01.java index 65028a582fc01..dfc7e2df9eca4 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderImpl01.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderImpl01.java @@ -48,7 +48,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.DocumentBuilderImpl01 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.DocumentBuilderImpl01 * @run testng/othervm javax.xml.parsers.ptests.DocumentBuilderImpl01 */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/FactoryConfErrorTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/FactoryConfErrorTest.java index 43527cf721a73..ea50b10364c36 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/FactoryConfErrorTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/FactoryConfErrorTest.java @@ -42,7 +42,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.FactoryConfErrorTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.FactoryConfErrorTest * @run testng/othervm javax.xml.parsers.ptests.FactoryConfErrorTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXFactoryNewInstanceTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXFactoryNewInstanceTest.java index aa8ba1337bbbe..492644027643b 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXFactoryNewInstanceTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXFactoryNewInstanceTest.java @@ -40,7 +40,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.SAXFactoryNewInstanceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.SAXFactoryNewInstanceTest * @run testng/othervm javax.xml.parsers.ptests.SAXFactoryNewInstanceTest * @summary Tests for SAXParserFactory.newInstance(factoryClassName , classLoader) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserFactTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserFactTest.java index 2effec0126f1a..5bf37b24a1429 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserFactTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserFactTest.java @@ -40,7 +40,7 @@ * @test * @bug 8169778 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.SAXParserFactTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.SAXParserFactTest * @run testng/othervm javax.xml.parsers.ptests.SAXParserFactTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest.java index 7a18ddba527a8..659af20492a43 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest.java @@ -48,7 +48,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.SAXParserTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.SAXParserTest * @run testng/othervm javax.xml.parsers.ptests.SAXParserTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest02.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest02.java index 1c7f410615fe7..3e7fc2ff5f6c2 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest02.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest02.java @@ -45,7 +45,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.SAXParserTest02 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.SAXParserTest02 * @run testng/othervm javax.xml.parsers.ptests.SAXParserTest02 */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest03.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest03.java index 94273e722ee3b..33dc530e72e6c 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest03.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest03.java @@ -44,7 +44,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.parsers.ptests.SAXParserTest03 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.parsers.ptests.SAXParserTest03 * @run testng/othervm javax.xml.parsers.ptests.SAXParserTest03 */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLEventFactoryNewInstanceTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLEventFactoryNewInstanceTest.java index 645a26e82ee90..59f3cdc40f24f 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLEventFactoryNewInstanceTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLEventFactoryNewInstanceTest.java @@ -43,7 +43,7 @@ * @test * @bug 8169778 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.stream.ptests.XMLEventFactoryNewInstanceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.stream.ptests.XMLEventFactoryNewInstanceTest * @run testng/othervm javax.xml.stream.ptests.XMLEventFactoryNewInstanceTest * @summary Tests for XMLEventFactory.newFactory(factoryId , classLoader) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLInputFactoryNewInstanceTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLInputFactoryNewInstanceTest.java index e747396ff9eee..310ba0b6c20a2 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLInputFactoryNewInstanceTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLInputFactoryNewInstanceTest.java @@ -43,7 +43,7 @@ * @test * @bug 8169778 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.stream.ptests.XMLInputFactoryNewInstanceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.stream.ptests.XMLInputFactoryNewInstanceTest * @run testng/othervm javax.xml.stream.ptests.XMLInputFactoryNewInstanceTest * @summary Tests for XMLInputFactory.newFactory(factoryId , classLoader) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLOutputFactoryNewInstanceTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLOutputFactoryNewInstanceTest.java index e901977e96817..f7fdaa307142d 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLOutputFactoryNewInstanceTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLOutputFactoryNewInstanceTest.java @@ -43,7 +43,7 @@ * @test * @bug 8169778 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.stream.ptests.XMLOutputFactoryNewInstanceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.stream.ptests.XMLOutputFactoryNewInstanceTest * @run testng/othervm javax.xml.stream.ptests.XMLOutputFactoryNewInstanceTest * @summary Tests for XMLOutputFactory.newFactory(factoryId , classLoader) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/Bug6384418Test.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/Bug6384418Test.java index e3e46791768e3..85b39d288fb9e 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/Bug6384418Test.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/Bug6384418Test.java @@ -44,7 +44,7 @@ * @test * @bug 6384418 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.Bug6384418Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.Bug6384418Test * @run testng/othervm javax.xml.transform.ptests.Bug6384418Test * @summary verify the transforming won't throw any exception */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/DOMResultTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/DOMResultTest.java index b1a65ec6e9e12..897e6183f755c 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/DOMResultTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/DOMResultTest.java @@ -56,7 +56,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.DOMResultTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.DOMResultTest * @run testng/othervm javax.xml.transform.ptests.DOMResultTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/ErrorListenerTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/ErrorListenerTest.java index eb9de80edc497..d274355f06dad 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/ErrorListenerTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/ErrorListenerTest.java @@ -44,7 +44,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.ErrorListenerTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.ErrorListenerTest * @run testng/othervm javax.xml.transform.ptests.ErrorListenerTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXSourceTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXSourceTest.java index 843b5571dbb6c..8ca1ae14c0c3b 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXSourceTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXSourceTest.java @@ -48,7 +48,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.SAXSourceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.SAXSourceTest * @run testng/othervm javax.xml.transform.ptests.SAXSourceTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXTFactoryTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXTFactoryTest.java index 16f2ba1b0e5d7..e772e4e8892e4 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXTFactoryTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXTFactoryTest.java @@ -62,7 +62,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.SAXTFactoryTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.SAXTFactoryTest * @run testng/othervm javax.xml.transform.ptests.SAXTFactoryTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/StreamResultTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/StreamResultTest.java index cfa6d59a5875b..224e6528ed3f7 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/StreamResultTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/StreamResultTest.java @@ -54,7 +54,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.StreamResultTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.StreamResultTest * @run testng/othervm javax.xml.transform.ptests.StreamResultTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TfClearParamTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TfClearParamTest.java index 10867c9f0d291..e9ebd33ea7db3 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TfClearParamTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TfClearParamTest.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.TfClearParamTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.TfClearParamTest * @run testng/othervm javax.xml.transform.ptests.TfClearParamTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformTest.java index b98272896cff9..73cf909350619 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformTest.java @@ -71,7 +71,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.TransformTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.TransformTest * @run testng/othervm javax.xml.transform.ptests.TransformTest * @summary Tests for variable combination of Transformer.transform(Source, Result) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerExcpTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerExcpTest.java index cf70fdee7b30c..027da107affda 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerExcpTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerExcpTest.java @@ -45,7 +45,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.TransformerExcpTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.TransformerExcpTest * @run testng/othervm javax.xml.transform.ptests.TransformerExcpTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerFactoryTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerFactoryTest.java index ec5d2d4f3879f..9c6ea1ed7b56e 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerFactoryTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerFactoryTest.java @@ -60,7 +60,7 @@ * @test * @bug 8169778 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.TransformerFactoryTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.TransformerFactoryTest * @run testng/othervm javax.xml.transform.ptests.TransformerFactoryTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest.java index 14d463e4dae1e..f464454630782 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest.java @@ -53,7 +53,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.TransformerTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.TransformerTest * @run testng/othervm javax.xml.transform.ptests.TransformerTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest02.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest02.java index 57d47c2c72a2e..b658e13660eff 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest02.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest02.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.TransformerTest02 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.TransformerTest02 * @run testng/othervm javax.xml.transform.ptests.TransformerTest02 */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest03.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest03.java index 3ea3b1b8639d9..ff898fc5c621c 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest03.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest03.java @@ -52,7 +52,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.TransformerTest03 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.TransformerTest03 * @run testng/othervm javax.xml.transform.ptests.TransformerTest03 */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/URIResolverTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/URIResolverTest.java index c7c7fc3ee1321..db092c003e9f0 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/URIResolverTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/URIResolverTest.java @@ -51,7 +51,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.URIResolverTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.URIResolverTest * @run testng/othervm javax.xml.transform.ptests.URIResolverTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/othervm/TFCErrorTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/othervm/TFCErrorTest.java index e0471aeb16049..db07644d989ad 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/othervm/TFCErrorTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/transform/ptests/othervm/TFCErrorTest.java @@ -38,7 +38,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.transform.ptests.othervm.TFCErrorTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.transform.ptests.othervm.TFCErrorTest * @run testng/othervm javax.xml.transform.ptests.othervm.TFCErrorTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/SchemaFactoryTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/SchemaFactoryTest.java index 920723c4a56e4..11bc3dc1bab29 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/SchemaFactoryTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/SchemaFactoryTest.java @@ -71,7 +71,7 @@ * @test * @bug 8080907 8169778 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.validation.ptests.SchemaFactoryTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.validation.ptests.SchemaFactoryTest * @run testng/othervm javax.xml.validation.ptests.SchemaFactoryTest * @summary Class containing the test cases for SchemaFactory */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/TypeInfoProviderTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/TypeInfoProviderTest.java index bc2b818fba750..c3bfb0354cf16 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/TypeInfoProviderTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/TypeInfoProviderTest.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.validation.ptests.TypeInfoProviderTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.validation.ptests.TypeInfoProviderTest * @run testng/othervm javax.xml.validation.ptests.TypeInfoProviderTest * @summary test ValidatorHandler.getTypeInfoProvider() */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorHandlerTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorHandlerTest.java index 686abe494c386..db3280f2ff767 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorHandlerTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorHandlerTest.java @@ -49,7 +49,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.validation.ptests.ValidatorHandlerTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.validation.ptests.ValidatorHandlerTest * @run testng/othervm javax.xml.validation.ptests.ValidatorHandlerTest * @summary Class containing the test cases for ValidatorHandler API */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorTest.java index ec50dd50bb5d5..56cc6fee57bfa 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorTest.java @@ -60,7 +60,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.validation.ptests.ValidatorTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.validation.ptests.ValidatorTest * @run testng/othervm javax.xml.validation.ptests.ValidatorTest * @summary Class containing the test cases for Validator API */ diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathEvaluationResultTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathEvaluationResultTest.java index aaedc697b462e..8c38718286551 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathEvaluationResultTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathEvaluationResultTest.java @@ -44,7 +44,7 @@ * @bug 8183266 * @summary verifies the specification of the XPathEvaluationResult API * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.xpath.ptests.XPathEvaluationResultTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.xpath.ptests.XPathEvaluationResultTest * @run testng/othervm javax.xml.xpath.ptests.XPathEvaluationResultTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathExpressionTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathExpressionTest.java index 4a7dca37be022..aa95e147e0dbe 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathExpressionTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathExpressionTest.java @@ -57,7 +57,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.xpath.ptests.XPathExpressionTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.xpath.ptests.XPathExpressionTest * @run testng/othervm javax.xml.xpath.ptests.XPathExpressionTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFactoryTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFactoryTest.java index b0e778204d2bb..67f3f03c0d4d6 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFactoryTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFactoryTest.java @@ -49,7 +49,7 @@ * @test * @bug 8169778 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.xpath.ptests.XPathFactoryTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.xpath.ptests.XPathFactoryTest * @run testng/othervm javax.xml.xpath.ptests.XPathFactoryTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFunctionResolverTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFunctionResolverTest.java index 6f5e80abb7a6a..20db15e01c973 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFunctionResolverTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFunctionResolverTest.java @@ -39,7 +39,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.xpath.ptests.XPathFunctionResolverTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.xpath.ptests.XPathFunctionResolverTest * @run testng/othervm javax.xml.xpath.ptests.XPathFunctionResolverTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathTest.java b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathTest.java index 86808d6b035f1..d98653c82c70a 100644 --- a/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathTest.java @@ -61,7 +61,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true javax.xml.xpath.ptests.XPathTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow javax.xml.xpath.ptests.XPathTest * @run testng/othervm javax.xml.xpath.ptests.XPathTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/AttrTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/AttrTest.java index 5c5405e63f05c..325381025670e 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/AttrTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/AttrTest.java @@ -40,7 +40,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.AttrTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.AttrTest * @run testng/othervm org.w3c.dom.ptests.AttrTest * @summary Test for the Attr Interface */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/CommentTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/CommentTest.java index 8ded2ce6b5157..600b46545493c 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/CommentTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/CommentTest.java @@ -36,7 +36,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/functional - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.CommentTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.CommentTest * @run testng/othervm org.w3c.dom.ptests.CommentTest * @summary Test for Comment implementation returned by Document.createComment(String) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTest.java index aa4f6ee475930..56e5932bcba04 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTest.java @@ -44,7 +44,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.DocumentTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.DocumentTest * @run testng/othervm org.w3c.dom.ptests.DocumentTest * @summary Test createAttributeNS, getElementsByTagNameNS and createElementNS method of Document */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTypeTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTypeTest.java index 9ac72f5c33773..cc2c100042fb4 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTypeTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTypeTest.java @@ -35,7 +35,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.DocumentTypeTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.DocumentTypeTest * @run testng/othervm org.w3c.dom.ptests.DocumentTypeTest * @summary Test DocumentType */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DomImplementationTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DomImplementationTest.java index ebfe9295ddd03..cc9e3d0976311 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DomImplementationTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/DomImplementationTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.DomImplementationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.DomImplementationTest * @run testng/othervm org.w3c.dom.ptests.DomImplementationTest * @summary Test DomImplementation API */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/ElementTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/ElementTest.java index c67f32a840fec..f9fd96dce6a90 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/ElementTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/ElementTest.java @@ -51,7 +51,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.ElementTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.ElementTest * @run testng/othervm org.w3c.dom.ptests.ElementTest * @summary Test for the methods of Element Interface */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/EntityChildTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/EntityChildTest.java index 78473f793bc8d..2e6723f6fc751 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/EntityChildTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/EntityChildTest.java @@ -39,7 +39,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.EntityChildTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.EntityChildTest * @run testng/othervm org.w3c.dom.ptests.EntityChildTest * @summary Test DOM Parser: parsing an xml file that contains external entities. */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NamedNodeMapTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NamedNodeMapTest.java index b83bcf75f0d96..4e495fba159af 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NamedNodeMapTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NamedNodeMapTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.NamedNodeMapTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.NamedNodeMapTest * @run testng/othervm org.w3c.dom.ptests.NamedNodeMapTest * @summary Test for the methods of NamedNodeMap Interface */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeListTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeListTest.java index 9d9cb491f2aa6..3b6c5e1264039 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeListTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeListTest.java @@ -35,7 +35,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.NodeListTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.NodeListTest * @run testng/othervm org.w3c.dom.ptests.NodeListTest * @summary Verifies a bug found in jaxp1.0.1 and 1.1FCS. After going out of * bound, the last element of a NodeList returns null. The bug has been fixed diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeTest.java index 264ad06a95f32..c1ec36e320ac8 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeTest.java @@ -57,7 +57,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.NodeTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.NodeTest * @run testng/othervm org.w3c.dom.ptests.NodeTest * @summary Test Node interface */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NotationTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NotationTest.java index 46bb3d25ca69c..dca0dcea354d6 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NotationTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/NotationTest.java @@ -39,7 +39,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.NotationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.NotationTest * @run testng/othervm org.w3c.dom.ptests.NotationTest * @summary Test for Notation interface */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/PITest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/PITest.java index 3b942942132b2..cf9e5a6e01f4d 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/PITest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/PITest.java @@ -33,7 +33,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.PITest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.PITest * @run testng/othervm org.w3c.dom.ptests.PITest * @summary Test for the methods of Processing Instruction */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/TextTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/TextTest.java index 3131e8d3de17d..87bdfdd0dcc83 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/TextTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/TextTest.java @@ -42,7 +42,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/functional - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.TextTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.TextTest * @run testng/othervm org.w3c.dom.ptests.TextTest * @summary Test for Text implementation returned by Document.createTextNode(String) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/TypeInfoTest.java b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/TypeInfoTest.java index ca3f174ce3956..58241072b7cd5 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/TypeInfoTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/w3c/dom/ptests/TypeInfoTest.java @@ -40,7 +40,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.w3c.dom.ptests.TypeInfoTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.w3c.dom.ptests.TypeInfoTest * @run testng/othervm org.w3c.dom.ptests.TypeInfoTest * @summary Test getTypeName and getTypeNamespace methods of TypeInfo interface */ diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttrImplTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttrImplTest.java index 9c4910bc904ae..6712f3a9ca6cd 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttrImplTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttrImplTest.java @@ -35,7 +35,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.AttrImplTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.AttrImplTest * @run testng/othervm org.xml.sax.ptests.AttrImplTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesNSTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesNSTest.java index f3115757e0ff4..60344d2960934 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesNSTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesNSTest.java @@ -46,7 +46,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.AttributesNSTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.AttributesNSTest * @run testng/othervm org.xml.sax.ptests.AttributesNSTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesTest.java index e6259be3a76a4..5fe50e39447df 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesTest.java @@ -47,7 +47,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.AttributesTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.AttributesTest * @run testng/othervm org.xml.sax.ptests.AttributesTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ContentHandlerTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ContentHandlerTest.java index 5ca0b94924a75..5da3045fcd75b 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ContentHandlerTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ContentHandlerTest.java @@ -52,7 +52,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.ContentHandlerTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.ContentHandlerTest * @run testng/othervm org.xml.sax.ptests.ContentHandlerTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/DefaultHandlerTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/DefaultHandlerTest.java index 6418fa264bde1..173cfb9677ecd 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/DefaultHandlerTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/DefaultHandlerTest.java @@ -51,7 +51,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.DefaultHandlerTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.DefaultHandlerTest * @run testng/othervm org.xml.sax.ptests.DefaultHandlerTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/EHFatalTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/EHFatalTest.java index 173a5ca659f69..0bd15eb507a58 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/EHFatalTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/EHFatalTest.java @@ -52,7 +52,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.EHFatalTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.EHFatalTest * @run testng/othervm org.xml.sax.ptests.EHFatalTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/NSSupportTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/NSSupportTest.java index 695a3ec806a21..d0f56627e53d4 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/NSSupportTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/NSSupportTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.NSSupportTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.NSSupportTest * @run testng/othervm org.xml.sax.ptests.NSSupportTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/NSTableTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/NSTableTest.java index 7fd27ffbbf584..e137c42716511 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/NSTableTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/NSTableTest.java @@ -39,7 +39,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.NSTableTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.NSTableTest * @run testng/othervm org.xml.sax.ptests.NSTableTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java index 627134b5eaf0c..225265bbb2004 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.ParserAdapterTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.ParserAdapterTest * @run testng/othervm org.xml.sax.ptests.ParserAdapterTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ResolverTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ResolverTest.java index 6822a88034ceb..6dbc3d92e2fc9 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ResolverTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/ResolverTest.java @@ -55,7 +55,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.ResolverTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.ResolverTest * @run testng/othervm org.xml.sax.ptests.ResolverTest */ @Test diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/SAXParserNSTableTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/SAXParserNSTableTest.java index 71cad03dc9f4e..f4c5354ef0ea6 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/SAXParserNSTableTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/SAXParserNSTableTest.java @@ -42,7 +42,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.SAXParserNSTableTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.SAXParserNSTableTest * @run testng/othervm org.xml.sax.ptests.SAXParserNSTableTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterCBTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterCBTest.java index 91dd02f8fb984..6ca9abf190def 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterCBTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterCBTest.java @@ -52,7 +52,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.XMLFilterCBTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.XMLFilterCBTest * @run testng/othervm org.xml.sax.ptests.XMLFilterCBTest */ @Test diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterTest.java index 4483942699f5c..a8d9adcf3ab64 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterTest.java @@ -44,7 +44,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.XMLFilterTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.XMLFilterTest * @run testng/othervm org.xml.sax.ptests.XMLFilterTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderAdapterTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderAdapterTest.java index 350074fbf2c09..bd526b4e1050b 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderAdapterTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderAdapterTest.java @@ -44,7 +44,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.XMLReaderAdapterTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.XMLReaderAdapterTest * @run testng/othervm org.xml.sax.ptests.XMLReaderAdapterTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java index 7ee49f39076a8..ad6951d7e2e75 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.XMLReaderFactoryTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.XMLReaderFactoryTest * @run testng/othervm org.xml.sax.ptests.XMLReaderFactoryTest */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderNSTableTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderNSTableTest.java index 518dbc0f8bb95..02f4baee9b26d 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderNSTableTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderNSTableTest.java @@ -45,7 +45,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.XMLReaderNSTableTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.XMLReaderNSTableTest * @run testng/othervm org.xml.sax.ptests.XMLReaderNSTableTest */ @Test diff --git a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderTest.java b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderTest.java index 568548d919c85..a7e1bc7a2b98b 100644 --- a/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderTest.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true org.xml.sax.ptests.XMLReaderTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow org.xml.sax.ptests.XMLReaderTest * @run testng/othervm org.xml.sax.ptests.XMLReaderTest */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/test/astro/AstroTest.java b/test/jaxp/javax/xml/jaxp/functional/test/astro/AstroTest.java index 8712697a298d4..5f8f8d3be8652 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/astro/AstroTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/astro/AstroTest.java @@ -43,7 +43,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.astro.AstroTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.astro.AstroTest * @run testng/othervm test.astro.AstroTest * @summary run astro application, test xslt * diff --git a/test/jaxp/javax/xml/jaxp/functional/test/astro/DocumentLSTest.java b/test/jaxp/javax/xml/jaxp/functional/test/astro/DocumentLSTest.java index 673674b9e65fe..a17f5caae3877 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/astro/DocumentLSTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/astro/DocumentLSTest.java @@ -54,7 +54,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.astro.DocumentLSTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.astro.DocumentLSTest * @run testng/othervm test.astro.DocumentLSTest * @summary org.w3c.dom.ls tests */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/astro/NamespaceContextTest.java b/test/jaxp/javax/xml/jaxp/functional/test/astro/NamespaceContextTest.java index 70771bfeacff8..fb8d3935fbfe7 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/astro/NamespaceContextTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/astro/NamespaceContextTest.java @@ -34,7 +34,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.astro.NamespaceContextTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.astro.NamespaceContextTest * @run testng/othervm test.astro.NamespaceContextTest * @summary javax.xml.namespace.QName tests */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/astro/SAX201Test.java b/test/jaxp/javax/xml/jaxp/functional/test/astro/SAX201Test.java index 822140baccc61..79245b28d7d2e 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/astro/SAX201Test.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/astro/SAX201Test.java @@ -31,7 +31,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.astro.SAX201Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.astro.SAX201Test * @run testng/othervm test.astro.SAX201Test * @summary verify SAX 2.0.1 allows to use null in setters */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/astro/SchemaValidationTest.java b/test/jaxp/javax/xml/jaxp/functional/test/astro/SchemaValidationTest.java index 6ba78e9d8177e..6e69fc10d34a6 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/astro/SchemaValidationTest.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/astro/SchemaValidationTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.astro.SchemaValidationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.astro.SchemaValidationTest * @run testng/othervm test.astro.SchemaValidationTest * @summary test parser sets schema related properties to do validation */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/astro/XPathAPITest.java b/test/jaxp/javax/xml/jaxp/functional/test/astro/XPathAPITest.java index 69ada828241c5..aad6d0f2ce44f 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/astro/XPathAPITest.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/astro/XPathAPITest.java @@ -56,7 +56,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.astro.XPathAPITest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.astro.XPathAPITest * @run testng/othervm test.astro.XPathAPITest * @summary test XPath API */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/AuctionController.java b/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/AuctionController.java index 5d3ea0317c519..a8230b4a8914e 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/AuctionController.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/AuctionController.java @@ -70,7 +70,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.auctionportal.AuctionController + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.auctionportal.AuctionController * @run testng/othervm test.auctionportal.AuctionController */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/AuctionItemRepository.java b/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/AuctionItemRepository.java index 2bab94a41aa4e..9c4a6b0d4eabe 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/AuctionItemRepository.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/AuctionItemRepository.java @@ -61,7 +61,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.auctionportal.AuctionItemRepository + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.auctionportal.AuctionItemRepository * @run testng/othervm test.auctionportal.AuctionItemRepository */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/UserController.java b/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/UserController.java index 5c4ac7c9bc6f2..9147f317b8d74 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/UserController.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/auctionportal/UserController.java @@ -59,7 +59,7 @@ /* * @test * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.auctionportal.UserController + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.auctionportal.UserController * @run testng/othervm test.auctionportal.UserController */ @Listeners({jaxp.library.FilePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4511326.java b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4511326.java index 5c6c1b3e0be3c..ca03c241d91a9 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4511326.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4511326.java @@ -36,7 +36,7 @@ * @test * @bug 4511326 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.gaptest.Bug4511326 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.gaptest.Bug4511326 * @run testng/othervm test.gaptest.Bug4511326 * @summary In forwards-compatible mode the attribute isn't ignored */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4512806.java b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4512806.java index 1778a20a0319e..44c691c93361e 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4512806.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4512806.java @@ -41,7 +41,7 @@ * @test * @bug 4512806 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.gaptest.Bug4512806 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.gaptest.Bug4512806 * @run testng/othervm test.gaptest.Bug4512806 * @summary test transformer.setOutputProperties(null) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4515047.java b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4515047.java index 7af1eb4235c8a..6c786ee796a4b 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4515047.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4515047.java @@ -38,7 +38,7 @@ * @test * @bug 4515047 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.gaptest.Bug4515047 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.gaptest.Bug4515047 * @run testng/othervm test.gaptest.Bug4515047 * @summary test transform an empty dom source */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4515660.java b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4515660.java index 15626ab1e71a4..0c512db8259af 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4515660.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4515660.java @@ -54,7 +54,7 @@ * @test * @bug 4515660 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.gaptest.Bug4515660 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.gaptest.Bug4515660 * @run testng/othervm test.gaptest.Bug4515660 * @summary verify property org.xml.sax.driver is used by SAXTransformerFactory */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4693341.java b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4693341.java index f76670bd22ed0..0e14ebc43557c 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4693341.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4693341.java @@ -50,7 +50,7 @@ * @test * @bug 4693341 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.gaptest.Bug4693341 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.gaptest.Bug4693341 * @run testng/othervm test.gaptest.Bug4693341 * @summary test transforming to stream with external dtd */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4848653.java b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4848653.java index 1ca0bcb77f338..ad805c7ff5fa8 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4848653.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4848653.java @@ -44,7 +44,7 @@ * @test * @bug 4848653 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.gaptest.Bug4848653 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.gaptest.Bug4848653 * @run testng/othervm test.gaptest.Bug4848653 * @summary Verify JAXP schemaLanguage property is ignored if setValidating(false) */ diff --git a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4858685.java b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4858685.java index f5deceb04f167..0da5ad75cfb23 100644 --- a/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4858685.java +++ b/test/jaxp/javax/xml/jaxp/functional/test/gaptest/Bug4858685.java @@ -47,7 +47,7 @@ * @test * @bug 4858685 4894410 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true test.gaptest.Bug4858685 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow test.gaptest.Bug4858685 * @run testng/othervm test.gaptest.Bug4858685 * @summary test transforming text node */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogAccessTest.java b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogAccessTest.java index d2e7edee6f08f..9b138f127087b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogAccessTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogAccessTest.java @@ -37,7 +37,7 @@ * @test * @bug 8171243 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true catalog.CatalogAccessTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogAccessTest * @summary the Catalog API grants no privilege to external resources. This test * verifies that SecurityException will be thrown if access to resources is denied * by the security manager. diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport.java b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport.java index dc96ce2832e62..8f487820d681c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport.java +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport.java @@ -43,7 +43,7 @@ * @test * @bug 8158084 8162438 8162442 8166220 8166398 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true catalog.CatalogSupport + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogSupport * @run testng/othervm catalog.CatalogSupport * @summary verifies the use of Catalog in SAX/DOM/StAX/Validation/Transform. * The two main scenarios for all processors are: diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport1.java b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport1.java index 03a54ef82be04..3daf3b6365d7d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport1.java +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport1.java @@ -50,7 +50,7 @@ * @test * @bug 8158084 8162438 8162442 8166220 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true catalog.CatalogSupport1 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogSupport1 * @run testng/othervm catalog.CatalogSupport1 * @summary extends CatalogSupport, verifies that the catalog file can be set * using the System property. diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport2.java b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport2.java index fc3908461fd6b..bef1339adf7fc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport2.java +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport2.java @@ -54,7 +54,7 @@ * @test * @bug 8158084 8162438 8162442 8163535 8166220 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true catalog.CatalogSupport2 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogSupport2 * @run testng/othervm catalog.CatalogSupport2 * @summary extends CatalogSupport tests, verifies that the use of the Catalog may * be disabled through the System property. diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport3.java b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport3.java index 83083a418ff9d..35582749fbd8c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport3.java +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport3.java @@ -54,7 +54,7 @@ * @test * @bug 8158084 8162438 8162442 8163535 8166220 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true catalog.CatalogSupport3 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogSupport3 * @run testng/othervm catalog.CatalogSupport3 * @summary extends CatalogSupport tests, verifies that the use of the Catalog may * be disabled through the API property. diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport4.java b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport4.java index 2549b64c072f4..49e424f38456c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport4.java +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport4.java @@ -48,7 +48,7 @@ * @test * @bug 8158084 8162438 8162442 8166220 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true catalog.CatalogSupport4 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogSupport4 * @run testng/othervm catalog.CatalogSupport4 * @summary verifies the overriding over of the USE_CATALOG feature. Extending * CatalogSupport tests, the USE_CATALOG is turned off system-wide, however, diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport5.java b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport5.java index 81da174994424..e6506b22e2b8a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport5.java +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogSupport5.java @@ -47,7 +47,7 @@ * @test * @bug 8158084 8163232 8166220 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true catalog.CatalogSupport5 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogSupport5 * @run testng/othervm catalog.CatalogSupport5 * @summary extends CatalogSupport tests, verifies that when errors occur, * relevant checked Exceptions are returned. diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogTest.java b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogTest.java index cd491ac8a1d3a..499a5b23e88e6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/CatalogTest.java @@ -70,7 +70,7 @@ * @test * @bug 8081248 8144966 8146606 8146237 8150969 8151162 8152527 8154220 8163232 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true catalog.CatalogTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow catalog.CatalogTest * @run testng/othervm catalog.CatalogTest * @summary Tests basic Catalog functions. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/Bug6350682.java b/test/jaxp/javax/xml/jaxp/unittest/common/Bug6350682.java index c1706bf80dcd9..5ae453dbde818 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/Bug6350682.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/Bug6350682.java @@ -35,7 +35,7 @@ * @test * @bug 6350682 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true common.Bug6350682 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.Bug6350682 * @run testng/othervm common.Bug6350682 * @summary Test SAXParserFactory and TransformerFactory can newInstance when setContextClassLoader(null). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/Bug6723276Test.java b/test/jaxp/javax/xml/jaxp/unittest/common/Bug6723276Test.java index 721e25a11c184..a34b268d7933e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/Bug6723276Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/Bug6723276Test.java @@ -36,7 +36,7 @@ * @test * @bug 6723276 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true common.Bug6723276Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.Bug6723276Test * @run testng/othervm common.Bug6723276Test * @summary Test JAXP class can be loaded by bootstrap classloader. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/Bug7143711Test.java b/test/jaxp/javax/xml/jaxp/unittest/common/Bug7143711Test.java index 33e81c1ea5dfb..8472a3bf5d30d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/Bug7143711Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/Bug7143711Test.java @@ -38,7 +38,7 @@ * @test * @bug 7143711 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true common.Bug7143711Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.Bug7143711Test * @summary Test set use-service-mechanism shall not override what's set by the constructor in secure mode. */ @Listeners({ jaxp.library.BasePolicy.class }) diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/CDataChunkSizeTest.java b/test/jaxp/javax/xml/jaxp/unittest/common/CDataChunkSizeTest.java index d733bc704ce7d..4158422332248 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/CDataChunkSizeTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/CDataChunkSizeTest.java @@ -43,7 +43,7 @@ * @test * @bug 8158619 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true common.CDataChunkSizeTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.CDataChunkSizeTest * @run testng/othervm common.CDataChunkSizeTest * @summary Verifies the support of property jdk.xml.cdataChunkSize */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/EncodingErrorsReportingTest.java b/test/jaxp/javax/xml/jaxp/unittest/common/EncodingErrorsReportingTest.java index 42c64ef7babce..6559aef6146c5 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/EncodingErrorsReportingTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/EncodingErrorsReportingTest.java @@ -25,7 +25,7 @@ * @bug 8038043 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest * @run testng/othervm common.EncodingErrorsReportingTest - * @run testng/othervm -DrunSecMngr=true common.EncodingErrorsReportingTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.EncodingErrorsReportingTest * @summary Verifies that parsers reports location of wrong UTF-8 symbols in * XML files parsed and included via xi:include element */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/Sources.java b/test/jaxp/javax/xml/jaxp/unittest/common/Sources.java index ad5f815cbad45..9d902f66ebfdf 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/Sources.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/Sources.java @@ -57,7 +57,7 @@ * @test * @bug 8144967 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true common.Sources + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.Sources * @run testng/othervm common.Sources * @summary Tests related to the javax.xml.transform.Source * and org.xml.sax.InputSource diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java b/test/jaxp/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java index 1dbe418833017..474a892aeef4e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java @@ -43,7 +43,7 @@ * @bug 8144593 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest * @compile -XDignore.symbol.file TestSAXDriver.java - * @run testng/othervm -DrunSecMngr=true common.TransformationWarningsTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.TransformationWarningsTest * @run testng/othervm common.TransformationWarningsTest * @summary Check that warnings about unsupported properties from parsers * are suppressed during the transformation process. diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/ValidationWarningsTest.java b/test/jaxp/javax/xml/jaxp/unittest/common/ValidationWarningsTest.java index 1e09a762f616a..65d9a2806a832 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/ValidationWarningsTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/ValidationWarningsTest.java @@ -47,7 +47,7 @@ * @key intermittent * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest * @compile -XDignore.symbol.file TestSAXDriver.java - * @run testng/othervm -DrunSecMngr=true common.ValidationWarningsTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.ValidationWarningsTest * @run testng/othervm common.ValidationWarningsTest * @summary Check that warnings about unsupported properties from SAX * parsers are suppressed during the xml validation process. diff --git a/test/jaxp/javax/xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java b/test/jaxp/javax/xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java index 083c0ff8ba585..2ff1b87dbf7f6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java @@ -68,7 +68,7 @@ * @test * @bug 6439439 8087303 8174025 8223291 8249867 8261209 8260858 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true common.prettyprint.PrettyPrintTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow common.prettyprint.PrettyPrintTest * @run testng/othervm common.prettyprint.PrettyPrintTest * @summary Test serializing xml and html with indentation. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6320118.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6320118.java index 2d1c25967e805..d1540dddf63b7 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6320118.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6320118.java @@ -36,7 +36,7 @@ * @test * @bug 6320118 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.Bug6320118 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.Bug6320118 * @run testng/othervm datatype.Bug6320118 * @summary Test xml datatype XMLGregorianCalendar. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6937951Test.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6937951Test.java index 36de6637e6d49..4bbb5500c641c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6937951Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6937951Test.java @@ -35,7 +35,7 @@ * @test * @bug 6937951 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.Bug6937951Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.Bug6937951Test * @run testng/othervm datatype.Bug6937951Test * @summary Test midnight is same as the start of the next day in XMLGregorianCalendar. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6937964Test.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6937964Test.java index c4184844c0409..f104029a96896 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6937964Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug6937964Test.java @@ -41,7 +41,7 @@ * @test * @bug 6937964 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.Bug6937964Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.Bug6937964Test * @run testng/othervm datatype.Bug6937964Test * @summary Test Duration is normalized. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug7042647Test.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug7042647Test.java index 5e6e34b6af664..ed553ee7ce24b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug7042647Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/Bug7042647Test.java @@ -38,7 +38,7 @@ * @test * @bug 7042647 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.Bug7042647Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.Bug7042647Test * @run testng/othervm datatype.Bug7042647Test * @summary Test getFirstDayOfWeek is correct after converting XMLGregorianCalendar to a GregorianCalendar. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/DatatypeFactoryTest.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/DatatypeFactoryTest.java index 4029e2b21aed8..d4050c8bff289 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/DatatypeFactoryTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/DatatypeFactoryTest.java @@ -40,7 +40,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.DatatypeFactoryTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.DatatypeFactoryTest * @run testng/othervm datatype.DatatypeFactoryTest * @summary Test DatatypeFactory. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/DurationTest.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/DurationTest.java index bd4f8d6a30575..044b6588c4487 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/DurationTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/DurationTest.java @@ -47,7 +47,7 @@ * @test * @bug 8190835 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.DurationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.DurationTest * @run testng/othervm datatype.DurationTest * @summary Test Duration. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/FactoryFindTest.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/FactoryFindTest.java index 2a1e2d6ea7fbb..1c8c0821a546c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/FactoryFindTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/FactoryFindTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.FactoryFindTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.FactoryFindTest * @run testng/othervm datatype.FactoryFindTest * @summary Test Classloader for DatatypeFactory. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/JDK8068839Test.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/JDK8068839Test.java index 03412b59edb16..b66af1d778b1d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/JDK8068839Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/JDK8068839Test.java @@ -34,7 +34,7 @@ * @test * @bug 8068839 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.JDK8068839Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.JDK8068839Test * @run testng/othervm datatype.JDK8068839Test * @summary Verifies that Duration's edge cases */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/datatype/XMLGregorianCalendarTest.java b/test/jaxp/javax/xml/jaxp/unittest/datatype/XMLGregorianCalendarTest.java index 415d949c05df9..b7fcae1daddc8 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/datatype/XMLGregorianCalendarTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/datatype/XMLGregorianCalendarTest.java @@ -36,7 +36,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true datatype.XMLGregorianCalendarTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow datatype.XMLGregorianCalendarTest * @run testng/othervm datatype.XMLGregorianCalendarTest * @summary Test XMLGregorianCalendar. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915524.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915524.java index 5ce2d195acd0e..664393a687e81 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915524.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915524.java @@ -39,7 +39,7 @@ * @test * @bug 4915524 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug4915524 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug4915524 * @run testng/othervm dom.Bug4915524 * @summary Test Document.adoptNode() shall not throw Exception when the source document object is created from different implementation. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915748.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915748.java index 50a5ced37f47f..fcabd144b7680 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915748.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4915748.java @@ -39,7 +39,7 @@ * @test * @bug 4915748 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug4915748 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug4915748 * @run testng/othervm dom.Bug4915748 * @summary Test DOMErrorHandler is called in case CDATA section is split by termination marker ']]>'. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966082.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966082.java index 30e1740f11ce8..237d416a51b2f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966082.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966082.java @@ -34,7 +34,7 @@ * @test * @bug 4966082 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug4966082 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug4966082 * @run testng/othervm dom.Bug4966082 * @summary Test Element.getSchemaTypeInfo() returns an instance of TypeInfo instead of null when the document's schema is an XML DTD. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966138.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966138.java index cdc96d140b927..a105ceb4f781a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966138.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966138.java @@ -36,7 +36,7 @@ * @test * @bug 4966138 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug4966138 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug4966138 * @run testng/othervm dom.Bug4966138 * @summary Test Element's TypeInfo.getTypeName() returns a name instead of null in case the element is declared using anonymous simple type. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966142.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966142.java index ebd66a0a02b64..248f70e4b9888 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966142.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966142.java @@ -36,7 +36,7 @@ * @test * @bug 4966142 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug4966142 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug4966142 * @run testng/othervm dom.Bug4966142 * @summary Test TypeInfo.isDerivedFrom(...) works instead of throws UnsupportedOperationException when the TypeInfo instance refers to a simple type. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966143.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966143.java index 4e42cb06b8c64..99fa549004658 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966143.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug4966143.java @@ -36,7 +36,7 @@ * @test * @bug 4966143 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug4966143 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug4966143 * @run testng/othervm dom.Bug4966143 * @summary Test isDerivedFrom(...) returns true only if the parameter is DERIVATION_EXTENSION, * in case TypeInfo instance refers to a complex type derived from another complex type by extension. diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6339023.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6339023.java index d389516117eb2..f303bf1c707e7 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6339023.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6339023.java @@ -40,7 +40,7 @@ * @test * @bug 6339023 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug6339023 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug6339023 * @run testng/othervm dom.Bug6339023 * @summary Test normalize-characters. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6355326.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6355326.java index f0b557a24a701..74321c52fde16 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6355326.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6355326.java @@ -47,7 +47,7 @@ * @test * @bug 6355326 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug6355326 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug6355326 * @run testng/othervm dom.Bug6355326 * @summary Test DOM implementation encoding. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6367542.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6367542.java index 21284ee390270..bcad42bdfaa5d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6367542.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6367542.java @@ -33,7 +33,7 @@ * @test * @bug 6367542 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug6367542 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug6367542 * @run testng/othervm dom.Bug6367542 * @summary Test DOMImplementationRegistry.getDOMImplementation("XML") returns a DOMImplementation instance. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6520131.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6520131.java index 22940e07b14a3..181d83b555945 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6520131.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6520131.java @@ -41,7 +41,7 @@ * @test * @bug 6520131 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug6520131 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug6520131 * @run testng/othervm dom.Bug6520131 * @summary Test DOMErrorHandler reports an error for invalid character. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6521260.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6521260.java index e051748fe7a14..d3784f0a6beee 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6521260.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6521260.java @@ -41,7 +41,7 @@ * @test * @bug 6521260 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug6521260 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug6521260 * @run testng/othervm dom.Bug6521260 * @summary Test setAttributeNS doesn't result in an unsorted internal list of attributes. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6582545Test.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6582545Test.java index 23c872e8553c5..38735c414f21a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6582545Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6582545Test.java @@ -46,7 +46,7 @@ * @test * @bug 6582545 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug6582545Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug6582545Test * @run testng/othervm dom.Bug6582545Test * @summary Test the value is correct when iterating attributes. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6879614Test.java b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6879614Test.java index 1e0f9da9f2452..08f6530e7b4a6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6879614Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/Bug6879614Test.java @@ -39,7 +39,7 @@ * @test * @bug 6879614 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.Bug6879614Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.Bug6879614Test * @run testng/othervm dom.Bug6879614Test * @summary Test DocumentBuilder can parse the certain xml. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/CR6333993Test.java b/test/jaxp/javax/xml/jaxp/unittest/dom/CR6333993Test.java index a706ae2bb31e0..b32d8b1d904f3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/CR6333993Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/CR6333993Test.java @@ -42,7 +42,7 @@ * @test * @bug 6333993 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.CR6333993Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.CR6333993Test * @run testng/othervm dom.CR6333993Test * @summary Test NodeList.item(valid index) returns value after NodeList.item(NodeList.getLength()). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/CR6517707Test.java b/test/jaxp/javax/xml/jaxp/unittest/dom/CR6517707Test.java index 90102a0afd222..58c4019bffabf 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/CR6517707Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/CR6517707Test.java @@ -44,7 +44,7 @@ * @test * @bug 6517707 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.CR6517707Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.CR6517707Test * @run testng/othervm dom.CR6517707Test * @summary Test Node.setNodeValue(value) shall throw DOMException.NO_MODIFICATION_ALLOWED_ERR if the node is read-only. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/CR6517717Test.java b/test/jaxp/javax/xml/jaxp/unittest/dom/CR6517717Test.java index 0d73cd4fee7bc..70f1cb68e1b75 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/CR6517717Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/CR6517717Test.java @@ -43,7 +43,7 @@ * @test * @bug 6517717 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.CR6517717Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.CR6517717Test * @run testng/othervm dom.CR6517717Test * @summary Test Node.setPrefix(prefix) shall throw DOMException.NO_MODIFICATION_ALLOWED_ERR if the node is read-only. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/CR6909336Test.java b/test/jaxp/javax/xml/jaxp/unittest/dom/CR6909336Test.java index ea91169b2034c..ccae3a55e0606 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/CR6909336Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/CR6909336Test.java @@ -38,7 +38,7 @@ * @test * @bug 6909336 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.CR6909336Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.CR6909336Test * @run testng/othervm dom.CR6909336Test * @summary Test DOM writer can write more that 20 nested elements. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/DOMConfigurationTest.java b/test/jaxp/javax/xml/jaxp/unittest/dom/DOMConfigurationTest.java index 528736f11e8b8..b3aa2d812f5fa 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/DOMConfigurationTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/DOMConfigurationTest.java @@ -59,7 +59,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.DOMConfigurationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.DOMConfigurationTest * @run testng/othervm dom.DOMConfigurationTest * @summary Test DOMConfiguration for supported properties. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/DOMXPathTest.java b/test/jaxp/javax/xml/jaxp/unittest/dom/DOMXPathTest.java index b43e694a575be..94a2dcdeb786d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/DOMXPathTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/DOMXPathTest.java @@ -34,7 +34,7 @@ * @test * @bug 8042244 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.DOMXPathTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.DOMXPathTest * @run testng/othervm dom.DOMXPathTest * @summary Verifies that the experimental DOM L3 XPath implementation is no longer available. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ElementTraversal.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ElementTraversal.java index 72a56b8a9a820..f72c9739c75d6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ElementTraversal.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ElementTraversal.java @@ -40,7 +40,7 @@ * @test * @bug 8135283 8138721 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ElementTraversal + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ElementTraversal * @run testng/othervm dom.ElementTraversal * @summary Tests for the Element Traversal interface. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/JdkXmlDomTest.java b/test/jaxp/javax/xml/jaxp/unittest/dom/JdkXmlDomTest.java index f07ac57c7b242..80e67d416f10a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/JdkXmlDomTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/JdkXmlDomTest.java @@ -32,7 +32,7 @@ * @test * @bug 8078139 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.JdkXmlDomTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.JdkXmlDomTest * @run testng/othervm dom.JdkXmlDomTest * @summary Verifies that jdk.xml.dom classes are loaded by the ext class loader. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/TCKEncodingTest.java b/test/jaxp/javax/xml/jaxp/unittest/dom/TCKEncodingTest.java index 6f71906ee9d2c..24ec0476b8f9c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/TCKEncodingTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/TCKEncodingTest.java @@ -40,7 +40,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.TCKEncodingTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.TCKEncodingTest * @run testng/othervm dom.TCKEncodingTest * @summary Test Document.getInputEncoding(). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug4973153.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug4973153.java index b6bdd0f606cb2..d360a27f042f0 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug4973153.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug4973153.java @@ -53,7 +53,7 @@ * @test * @bug 4973153 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ls.Bug4973153 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ls.Bug4973153 * @run testng/othervm dom.ls.Bug4973153 * @summary Test LSSerialiser.setEncoding() raises 'unsupported-encoding' error if encoding is invalid. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6290947.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6290947.java index 745c31c8d2b79..2a362a9f4a550 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6290947.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6290947.java @@ -47,7 +47,7 @@ * @test * @bug 6290947 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ls.Bug6290947 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ls.Bug6290947 * @run testng/othervm dom.ls.Bug6290947 * @summary Test LSSerializer writes the XML declaration when LSSerializerFilter is set that rejects all nodes and * LSSerializer's configuration set parameter "xml-declaration" to "true". diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6354955.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6354955.java index 91507e977003d..76c013f4d7c69 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6354955.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6354955.java @@ -44,7 +44,7 @@ * @test * @bug 6354955 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ls.Bug6354955 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ls.Bug6354955 * @run testng/othervm dom.ls.Bug6354955 * @summary Test LSSerializer can writeToString on DOM Text node with white space. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6376823.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6376823.java index 07541e8fee31f..429949ad7f26e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6376823.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6376823.java @@ -47,7 +47,7 @@ * @test * @bug 6376823 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ls.Bug6376823 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ls.Bug6376823 * @run testng/othervm dom.ls.Bug6376823 * @summary Test LSSerializer works. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6710741Test.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6710741Test.java index 3f4f1ffb0c421..c0eafb0f01423 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6710741Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/Bug6710741Test.java @@ -38,7 +38,7 @@ * @test * @bug 6710741 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ls.Bug6710741Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ls.Bug6710741Test * @run testng/othervm dom.ls.Bug6710741Test * @summary Test there should be stack trace information if LSSerializer().writeToString reports an exception. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTCKTest.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTCKTest.java index 8c39f248400a2..825d3f56596c8 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTCKTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTCKTest.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ls.LSParserTCKTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ls.LSParserTCKTest * @run testng/othervm dom.ls.LSParserTCKTest * @summary Test Specifications and Descriptions for LSParser. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTest.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTest.java index 18b50f2daed66..4a999b5cb145b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSParserTest.java @@ -42,7 +42,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ls.LSParserTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ls.LSParserTest * @run testng/othervm dom.ls.LSParserTest * @summary Test LSParser's DOMConfiguration for supported properties. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSSerializerTest.java b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSSerializerTest.java index a9f15c33cf934..3cf602c82a4db 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSSerializerTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/dom/ls/LSSerializerTest.java @@ -55,7 +55,7 @@ * @test * @bug 8080906 8114834 8206132 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true dom.ls.LSSerializerTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow dom.ls.LSSerializerTest * @run testng/othervm dom.ls.LSSerializerTest * @summary Test LSSerializer. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/BaseParsingTest.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/BaseParsingTest.java index 7da0d602d7e4c..dda14b2b36cac 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/BaseParsingTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/BaseParsingTest.java @@ -48,7 +48,7 @@ * @test * @bug 8169450 8222415 8219692 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.BaseParsingTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.BaseParsingTest * @run testng/othervm parsers.BaseParsingTest * @summary Tests that verify base parsing */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4674384_MAX_OCCURS_Test.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4674384_MAX_OCCURS_Test.java index 1713fff6d6217..93d6782c35895 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4674384_MAX_OCCURS_Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4674384_MAX_OCCURS_Test.java @@ -37,7 +37,7 @@ * @test * @bug 4674384 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug4674384_MAX_OCCURS_Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug4674384_MAX_OCCURS_Test * @run testng/othervm parsers.Bug4674384_MAX_OCCURS_Test * @summary Test large maxOccurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4934208.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4934208.java index 743f236302bdf..f885a244cc297 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4934208.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4934208.java @@ -39,7 +39,7 @@ * @test * @bug 4934208 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug4934208 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug4934208 * @run testng/othervm parsers.Bug4934208 * @summary Test SAXParser can parse keyref constraint with a selector that is a union xpath expression selecting a node and its child. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4967002.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4967002.java index d0797a2f669dd..79dd7d326ef16 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4967002.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4967002.java @@ -41,7 +41,7 @@ * @test * @bug 4967002 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug4967002 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug4967002 * @run testng/othervm parsers.Bug4967002 * @summary Test DocumentBuilderFactory.newDocumentBuilder() throws ParserConfigurationException * when it uses the "http://java.sun.com/xml/jaxp/properties/schemaSource" property diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4985486.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4985486.java index 3fb179751e606..fb1c722be191f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4985486.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4985486.java @@ -35,7 +35,7 @@ * @test * @bug 4985486 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug4985486 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug4985486 * @run testng/othervm parsers.Bug4985486 * @summary Test SAXParser can parse large characters(more than 10000). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991020.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991020.java index c0be7b47a04a5..59ae3bb4f068e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991020.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991020.java @@ -33,7 +33,7 @@ * @test * @bug 4991020 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug4991020 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug4991020 * @run testng/othervm parsers.Bug4991020 * @summary Test XPath like "node_name/." can be parsed. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991946.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991946.java index 9213a59508d99..e9e658d506486 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991946.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug4991946.java @@ -33,7 +33,7 @@ * @test * @bug 4991946 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug4991946 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug4991946 * @run testng/othervm parsers.Bug4991946 * @summary Can parse the element type is anyType in the schema and is substituted by the simple type via the 'xsi:type' attribute in xml document. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5010072.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5010072.java index 04346c89fea1c..872ba1b3e4fc0 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5010072.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5010072.java @@ -36,7 +36,7 @@ * @test * @bug 5010072 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug5010072 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug5010072 * @run testng/othervm parsers.Bug5010072 * @summary Test SchemaFactory throws SAXException if xpath is "@". */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5025825.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5025825.java index 9f8cbcb411163..340bd12d86747 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5025825.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug5025825.java @@ -42,7 +42,7 @@ * @test * @bug 5025825 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug5025825 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug5025825 * @run testng/othervm parsers.Bug5025825 * @summary Test if SAXParserFactory set a Schema object, when SAXParser sets "http://java.sun.com/xml/jaxp/properties/schemaSource" property * and/or "http://java.sun.com/xml/jaxp/properties/schemaLanguage" property, it shall throw SAXException. diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6309988.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6309988.java index 75fc8adfdd448..83a66f3ce06d3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6309988.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6309988.java @@ -45,7 +45,7 @@ * @test * @bug 6309988 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6309988 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6309988 * @run testng/othervm parsers.Bug6309988 * @summary Test elementAttributeLimit, maxOccurLimit, entityExpansionLimit. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6341770.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6341770.java index 1bf27aa09a05a..3c0998b57a8ab 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6341770.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6341770.java @@ -45,7 +45,7 @@ * @test * @bug 6341770 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6341770 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6341770 * @run testng/othervm parsers.Bug6341770 * @summary Test external entity linked to non-ASCII base URL. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6361283.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6361283.java index 5a76ae9992e6f..38fd631114b3e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6361283.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6361283.java @@ -34,7 +34,7 @@ * @test * @bug 6361283 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6361283 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6361283 * @run testng/othervm parsers.Bug6361283 * @summary Test SAXParser returns version as 1.1 for XML 1.1 document. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6506304Test.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6506304Test.java index 98f2e96418d80..fab882af2ee6b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6506304Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6506304Test.java @@ -37,7 +37,7 @@ * @test * @bug 6506304 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6506304Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6506304Test * @run testng/othervm parsers.Bug6506304Test * @summary Test MalformedURLException: unknown protocol won't be thrown when there is a space within the full path file name. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6518733.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6518733.java index 37ee4cc57f438..459aa086e4d4d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6518733.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6518733.java @@ -39,7 +39,7 @@ * @test * @bug 6518733 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6518733 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6518733 * @run testng/othervm parsers.Bug6518733 * @summary Test SAX parser handles several attributes that each contain a newline within the attribute value. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6564400.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6564400.java index e427478c4274f..930151d0f4d1d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6564400.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6564400.java @@ -50,7 +50,7 @@ * @test * @bug 6564400 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6564400 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6564400 * @run testng/othervm parsers.Bug6564400 * @summary Test ignorable whitespace handling with schema validation. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6573786.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6573786.java index 87953ae836b1d..41cc1c29a36df 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6573786.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6573786.java @@ -36,7 +36,7 @@ * @test * @bug 6573786 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6573786 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6573786 * @run testng/othervm parsers.Bug6573786 * @summary Test parser error messages are formatted. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6594813.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6594813.java index 7e168d90cd42f..2c9ba167249dc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6594813.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6594813.java @@ -43,7 +43,7 @@ * @test * @bug 6594813 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6594813 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6594813 * @run testng/othervm parsers.Bug6594813 * @summary Test SAXParser output is wellformed with name space. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6608841.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6608841.java index 9c638368cc6fb..c18f144a3f42d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6608841.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6608841.java @@ -39,7 +39,7 @@ * @test * @bug 6608841 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6608841 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6608841 * @run testng/othervm parsers.Bug6608841 * @summary Test SAX parses external parameter entity. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6690015.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6690015.java index a866ee56a813a..6149805a0f62b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6690015.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6690015.java @@ -41,7 +41,7 @@ * @test * @bug 6518733 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6690015 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6690015 * @run testng/othervm parsers.Bug6690015 * @summary Test SAX parser handles several attributes with newlines. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6760982.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6760982.java index a1cdcac70541d..b6d3de02d98c8 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6760982.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6760982.java @@ -43,7 +43,7 @@ * @test * @bug 6518733 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6760982 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6760982 * @run testng/othervm parsers.Bug6760982 * @summary Test SAX parser handles several attributes with containing ">". */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6849942Test.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6849942Test.java index f2266d24e1c59..2e4f8d936e403 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6849942Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug6849942Test.java @@ -39,7 +39,7 @@ * @test * @bug 6849942 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug6849942Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug6849942Test * @run testng/othervm parsers.Bug6849942Test * @summary Test parsing an XML that starts with a processing instruction and no prolog. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7157608Test.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7157608Test.java index 6fb819bf9ec1d..28e9072b20985 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7157608Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7157608Test.java @@ -45,7 +45,7 @@ * @test * @bug 7157608 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug7157608Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug7157608Test * @run testng/othervm parsers.Bug7157608Test * @summary Test feature standard-uri-conformant works. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7166896Test.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7166896Test.java index ec25ae28d8027..9de25e9aa1f97 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7166896Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug7166896Test.java @@ -39,7 +39,7 @@ * @test * @bug 7166896 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug7166896Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug7166896Test * @run testng/othervm parsers.Bug7166896Test * @summary Test DocumentBuilder.parse(String uri) supports IPv6 format. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8003147Test.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8003147Test.java index 2cab8f85f52b2..ddabbcd998d45 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8003147Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8003147Test.java @@ -26,7 +26,7 @@ * @bug 8003147 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest * @compile -g Bug8003147TestClass.java - * @run testng/othervm -DrunSecMngr=true parsers.Bug8003147Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug8003147Test * @run testng/othervm parsers.Bug8003147Test * @summary Test port fix for BCEL bug 39695. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8073385.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8073385.java index aef8e65f83801..4349a8cbdccbf 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8073385.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/Bug8073385.java @@ -44,7 +44,7 @@ * @test * @bug 8073385 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.Bug8073385 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.Bug8073385 * @run testng/othervm parsers.Bug8073385 * @summary test that invalid XML character exception string contains * information about character value, element and attribute names diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/FactoryFindTest.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/FactoryFindTest.java index d45e6702fc0fb..b6a2a39476994 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/FactoryFindTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/FactoryFindTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.FactoryFindTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.FactoryFindTest * @run testng/othervm parsers.FactoryFindTest * @summary Test Classloader for SAXParserFactory. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/HandleError.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/HandleError.java index 0a3e35c5dd3b4..9a842561ab0e4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/HandleError.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/HandleError.java @@ -39,7 +39,7 @@ * @test * @bug 8157797 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.HandleError + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.HandleError * @run testng/othervm parsers.HandleError * @summary Tests that the parser handles errors properly. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/ParseEmptyStream.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/ParseEmptyStream.java index c3159cf50cd8b..dc554f259dfd9 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/ParseEmptyStream.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/ParseEmptyStream.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.ParseEmptyStream + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.ParseEmptyStream * @run testng/othervm parsers.ParseEmptyStream * @summary Test SAXParser doesn't accept empty stream. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/SupplementaryChars.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/SupplementaryChars.java index 5b4e018e757ed..60f950057602b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/SupplementaryChars.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/SupplementaryChars.java @@ -14,7 +14,7 @@ * @test * @bug 8072081 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.SupplementaryChars + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.SupplementaryChars * @run testng/othervm parsers.SupplementaryChars * @summary verifies that supplementary characters are supported as character * data in xml 1.0, and also names in xml 1.1. diff --git a/test/jaxp/javax/xml/jaxp/unittest/parsers/xinclude/Bug6794483Test.java b/test/jaxp/javax/xml/jaxp/unittest/parsers/xinclude/Bug6794483Test.java index 8385d40c47f38..421e4109cda88 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/parsers/xinclude/Bug6794483Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/parsers/xinclude/Bug6794483Test.java @@ -46,7 +46,7 @@ * @test * @bug 6794483 8080908 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true parsers.xinclude.Bug6794483Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow parsers.xinclude.Bug6794483Test * @run testng/othervm parsers.xinclude.Bug6794483Test * @summary Test JAXP parser can resolve the included content properly if the * included xml contains an empty tag that ends with "/>", refer to XERCESJ-1134. diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/Attributes2ImplTest.java b/test/jaxp/javax/xml/jaxp/unittest/sax/Attributes2ImplTest.java index 982bc8e595baa..22c7f5b048ba3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/Attributes2ImplTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/Attributes2ImplTest.java @@ -31,7 +31,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.Attributes2ImplTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.Attributes2ImplTest * @run testng/othervm sax.Attributes2ImplTest * @summary Test Attributes2Impl. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6889654Test.java b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6889654Test.java index 7eb7a59fe8f2b..3a82f58dca8c1 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6889654Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6889654Test.java @@ -40,7 +40,7 @@ * @test * @bug 6889654 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.Bug6889654Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.Bug6889654Test * @run testng/othervm sax.Bug6889654Test * @summary Test SAXException includes whole information. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6925410Test.java b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6925410Test.java index df006578c0cea..f735b8c869ff8 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6925410Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6925410Test.java @@ -34,7 +34,7 @@ * @test * @bug 6925410 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.Bug6925410Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.Bug6925410Test * @run testng/othervm sax.Bug6925410Test * @summary Test XMLReaderFactory can createXMLReader repeatedly. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6949607Test.java b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6949607Test.java index 1ba064fa56bda..ba2c3656563c6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6949607Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6949607Test.java @@ -39,7 +39,7 @@ * @test * @bug 6949607 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.Bug6949607Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.Bug6949607Test * @run testng/othervm sax.Bug6949607Test * @summary Test Attributes.getValue returns null when parameter uri is empty. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6992561Test.java b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6992561Test.java index 7d05dd7f0a948..49ea6ea06f372 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6992561Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug6992561Test.java @@ -44,7 +44,7 @@ * @test * @bug 6992561 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.Bug6992561Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.Bug6992561Test * @run testng/othervm sax.Bug6992561Test * @summary Test encoding of SystemId in Locator. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug7057778Test.java b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug7057778Test.java index be6dbc986f8bb..fac75946702e0 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/Bug7057778Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/Bug7057778Test.java @@ -57,7 +57,7 @@ * @test * @bug 7057778 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.Bug7057778Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.Bug7057778Test * @run testng/othervm sax.Bug7057778Test * @summary Test the file can be deleted after SAXParser.parse(File, DefaultHandler). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/DefaultHandler2Test.java b/test/jaxp/javax/xml/jaxp/unittest/sax/DefaultHandler2Test.java index a7bd3f59d0c99..440999d8dbe25 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/DefaultHandler2Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/DefaultHandler2Test.java @@ -45,7 +45,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.DefaultHandler2Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.DefaultHandler2Test * @run testng/othervm sax.DefaultHandler2Test * @summary Test DefaultHandler2. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java b/test/jaxp/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java index fbfef8f705b49..102ef7d0900f5 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java @@ -43,7 +43,7 @@ * @test * @bug 6809409 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.IssueTracker56Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.IssueTracker56Test * @run testng/othervm sax.IssueTracker56Test * @summary Test SAXException has Cause. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/NSSupportTest.java b/test/jaxp/javax/xml/jaxp/unittest/sax/NSSupportTest.java index 32c4c5c05dcba..5d16af21b867e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/NSSupportTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/NSSupportTest.java @@ -34,7 +34,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.NSSupportTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.NSSupportTest * @run testng/othervm sax.NSSupportTest * @summary Test NamespaceSupport. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/SymbolTableResetTest.java b/test/jaxp/javax/xml/jaxp/unittest/sax/SymbolTableResetTest.java index b56eb7ec9a935..19a2c4d9a6b71 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/SymbolTableResetTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/SymbolTableResetTest.java @@ -42,8 +42,8 @@ * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest * @run testng/othervm -Djdk.xml.resetSymbolTable=false sax.SymbolTableResetTest * @run testng/othervm -Djdk.xml.resetSymbolTable=true sax.SymbolTableResetTest - * @run testng/othervm -Djdk.xml.resetSymbolTable=false -DrunSecMngr=true sax.SymbolTableResetTest - * @run testng/othervm -Djdk.xml.resetSymbolTable=true -DrunSecMngr=true sax.SymbolTableResetTest + * @run testng/othervm -Djdk.xml.resetSymbolTable=false -DrunSecMngr=true -Djava.security.manager=allow sax.SymbolTableResetTest + * @run testng/othervm -Djdk.xml.resetSymbolTable=true -DrunSecMngr=true -Djava.security.manager=allow sax.SymbolTableResetTest * @summary Test that SAXParser reallocates symbol table during * subsequent parse operations */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/sax/XMLReaderTest.java b/test/jaxp/javax/xml/jaxp/unittest/sax/XMLReaderTest.java index cc234531a2784..79c3bba336235 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/sax/XMLReaderTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/sax/XMLReaderTest.java @@ -39,7 +39,7 @@ * @test * @bug 8158246 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true sax.XMLReaderTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow sax.XMLReaderTest * @run testng/othervm sax.XMLReaderTest * @summary This class contains tests that cover the creation of XMLReader. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/AttributeLocalNameTest/AttributeLocalNameTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/AttributeLocalNameTest/AttributeLocalNameTest.java index 7aece9698f9aa..b949340123e70 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/AttributeLocalNameTest/AttributeLocalNameTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/AttributeLocalNameTest/AttributeLocalNameTest.java @@ -36,7 +36,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.AttributeLocalNameTest.AttributeLocalNameTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.AttributeLocalNameTest.AttributeLocalNameTest * @run testng/othervm stream.AttributeLocalNameTest.AttributeLocalNameTest * @summary Test XMLStreamReader.getAttributeLocalName(). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6370703.java b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6370703.java index ba8c7adee57f8..83413811fba41 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6370703.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6370703.java @@ -34,7 +34,7 @@ * @test * @bug 6370703 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.Bug6370703 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.Bug6370703 * @run testng/othervm stream.Bug6370703 * @summary Test StAX parser can parse attribute default value when START_ELEMENT. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6378422.java b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6378422.java index 4fa70e2b73bb3..250721a474485 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6378422.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6378422.java @@ -33,7 +33,7 @@ * @test * @bug 6378422 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.Bug6378422 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.Bug6378422 * @run testng/othervm stream.Bug6378422 * @summary Test setting reuse-instance property on StAX factory. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6380870.java b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6380870.java index 0c584d0fe35fd..74223c6826ca3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6380870.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6380870.java @@ -34,7 +34,7 @@ * @test * @bug 6380870 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.Bug6380870 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.Bug6380870 * @run testng/othervm stream.Bug6380870 * @summary Test StAX parser can parse VoiceXML DTD. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6489502.java b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6489502.java index 832f74de9599a..debb318d470e9 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6489502.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6489502.java @@ -37,7 +37,7 @@ * @test * @bug 6489502 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.Bug6489502 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.Bug6489502 * @run testng/othervm stream.Bug6489502 * @summary Test XMLInputFactory works correctly in case it repeats to create reader. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6509774.java b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6509774.java index 5c6a410610408..1f3473850579c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6509774.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6509774.java @@ -35,7 +35,7 @@ * @test * @bug 6509774 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.Bug6509774 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.Bug6509774 * @run testng/othervm stream.Bug6509774 * @summary Test Property javax.xml.stream.supportDTD, DTD events are now returned even if supportDTD=false. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6688002Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6688002Test.java index 1d1f728009d1e..4dfe360ac1344 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6688002Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6688002Test.java @@ -43,7 +43,7 @@ * @test * @bug 6688002 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.Bug6688002Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.Bug6688002Test * @run testng/othervm stream.Bug6688002Test * @summary Test single instance of XMLOutputFactory/XMLInputFactory create multiple Writer/Readers in parallel. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6976938Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6976938Test.java index f4a40ef28e81e..bef1b02e23807 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6976938Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/Bug6976938Test.java @@ -38,7 +38,7 @@ * @test * @bug 6976938 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.Bug6976938Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.Bug6976938Test * @run testng/othervm stream.Bug6976938Test * @summary Test StAX parser won't throw StackOverflowError while reading valid XML file, in case the text content of an XML element contains many lines like "< ... >". */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/CoalesceTest/CoalesceTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/CoalesceTest/CoalesceTest.java index 09a12ca7476e9..c6c4af176c75c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/CoalesceTest/CoalesceTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/CoalesceTest/CoalesceTest.java @@ -38,7 +38,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.CoalesceTest.CoalesceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.CoalesceTest.CoalesceTest * @run testng/othervm stream.CoalesceTest.CoalesceTest * @summary Test Coalesce property works. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java index 24526e0dd9f24..806be8572db81 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java @@ -43,7 +43,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.EntitiesTest.EntityTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.EntitiesTest.EntityTest * @run testng/othervm stream.EntitiesTest.EntityTest * @summary Test StAX parses entity. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/EventReaderDelegateTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/EventReaderDelegateTest.java index db93e02f55b71..51da18e69c5f4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/EventReaderDelegateTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/EventReaderDelegateTest.java @@ -42,7 +42,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.EventReaderDelegateTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.EventReaderDelegateTest * @run testng/othervm stream.EventReaderDelegateTest * @summary Test EventReaderDelegate. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue41Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue41Test.java index 13f25d5adc00d..d69808989e33c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue41Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue41Test.java @@ -55,7 +55,7 @@ * @test * @bug 6631268 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.EventsTest.Issue41Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.EventsTest.Issue41Test * @run testng/othervm stream.EventsTest.Issue41Test * @summary Test XMLEvent.writeAsEncodedUnicode can output the event content. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue48Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue48Test.java index d4fa45bb7897e..870b3297be8a5 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue48Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue48Test.java @@ -44,7 +44,7 @@ * @test * @bug 6620632 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.EventsTest.Issue48Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.EventsTest.Issue48Test * @run testng/othervm stream.EventsTest.Issue48Test * @summary Test XMLEventReader can parse notation and entity information from DTD Event. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue53Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue53Test.java index 1490e28269c53..260a8c4731678 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue53Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue53Test.java @@ -33,7 +33,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.EventsTest.Issue53Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.EventsTest.Issue53Test * @run testng/othervm stream.EventsTest.Issue53Test * @summary Test encodingSet/standaloneSet returns correct result in case encoding/standalone is set when constructing StartDocument. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue58Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue58Test.java index 6453fae9e06a1..61bba35daeb90 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue58Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/EventsTest/Issue58Test.java @@ -38,7 +38,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.EventsTest.Issue58Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.EventsTest.Issue58Test * @run testng/othervm stream.EventsTest.Issue58Test * @summary Test XMLEvent.getLocation() returns a non-volatile Location. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/FactoryFindTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/FactoryFindTest.java index a0a538f2369af..6650315ef161d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/FactoryFindTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/FactoryFindTest.java @@ -45,7 +45,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.FactoryFindTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.FactoryFindTest * @run testng/othervm stream.FactoryFindTest * @summary Test SaTX factory using factory property and using ContextClassLoader. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/IgnoreExternalDTDTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/IgnoreExternalDTDTest.java index 4610aff758ec0..fd9034eeb44dd 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/IgnoreExternalDTDTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/IgnoreExternalDTDTest.java @@ -36,7 +36,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.IgnoreExternalDTDTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.IgnoreExternalDTDTest * @run testng/othervm stream.IgnoreExternalDTDTest * @summary Test feature ignore-external-dtd. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/ProcessingInstructionTest/ProcessingInstructionTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/ProcessingInstructionTest/ProcessingInstructionTest.java index 43e785f81e46b..ed79ce0cf608f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/ProcessingInstructionTest/ProcessingInstructionTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/ProcessingInstructionTest/ProcessingInstructionTest.java @@ -36,7 +36,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.ProcessingInstructionTest.ProcessingInstructionTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.ProcessingInstructionTest.ProcessingInstructionTest * @run testng/othervm stream.ProcessingInstructionTest.ProcessingInstructionTest * @summary Test XMLStreamReader parses Processing Instruction. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/StreamReaderDelegateTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/StreamReaderDelegateTest.java index 44c602e72d46c..03a8863a18025 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/StreamReaderDelegateTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/StreamReaderDelegateTest.java @@ -44,7 +44,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.StreamReaderDelegateTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.StreamReaderDelegateTest * @run testng/othervm stream.StreamReaderDelegateTest * @summary Test StreamReaderDelegate. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventLocationTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventLocationTest.java index 0472899ebb2e9..aeaed26dafec4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventLocationTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventLocationTest.java @@ -34,7 +34,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventLocationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventLocationTest * @run testng/othervm stream.XMLEventLocationTest * @summary Test XMLEvent Location. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6489890.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6489890.java index d98aec1caf82a..687db31a91d42 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6489890.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6489890.java @@ -36,7 +36,7 @@ * @test * @bug 6489890 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.Bug6489890 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.Bug6489890 * @run testng/othervm stream.XMLEventReaderTest.Bug6489890 * @summary Test XMLEventReader's initial state is an undefined state, and nextEvent() is START_DOCUMENT. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6555001.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6555001.java index ebb7cf879421f..8d193d1818846 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6555001.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6555001.java @@ -40,7 +40,7 @@ * @test * @bug 6555001 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.Bug6555001 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.Bug6555001 * @run testng/othervm stream.XMLEventReaderTest.Bug6555001 * @summary Test StAX parser replaces the entity reference as setting. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6586466Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6586466Test.java index 437dd9e602af6..2da4cd7e88f4d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6586466Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6586466Test.java @@ -37,7 +37,7 @@ * @test * @bug 6586466 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.Bug6586466Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.Bug6586466Test * @run testng/othervm stream.XMLEventReaderTest.Bug6586466Test * @summary Test XMLEventReader.nextTag() shall update internal event state. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6613059Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6613059Test.java index 23531b463ec66..ddc9e44f1f8c1 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6613059Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6613059Test.java @@ -37,7 +37,7 @@ * @test * @bug 6613059 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.Bug6613059Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.Bug6613059Test * @run testng/othervm stream.XMLEventReaderTest.Bug6613059Test * @summary Test XMLEventReader.nextTag() shall update internal event state, same as 6586466. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6668115Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6668115Test.java index f2b8ebe7e2f56..1a52f69829079 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6668115Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6668115Test.java @@ -37,7 +37,7 @@ * @test * @bug 6668115 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.Bug6668115Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.Bug6668115Test * @run testng/othervm stream.XMLEventReaderTest.Bug6668115Test * @summary Test XMLEventReader.getElementText() shall update last event even if no peek. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6846133Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6846133Test.java index 416c3e960bb23..2f8c8871b8ebf 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6846133Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6846133Test.java @@ -33,7 +33,7 @@ * @test * @bug 6846133 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.Bug6846133Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.Bug6846133Test * @run testng/othervm stream.XMLEventReaderTest.Bug6846133Test * @summary Test method getDocumentTypeDeclaration() of DTD Event returns a valid value. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug8153781.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug8153781.java index 7c3b529afcf24..b81d14e24771d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug8153781.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug8153781.java @@ -40,7 +40,7 @@ * @test * @bug 8153781 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.Bug8153781 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.Bug8153781 * @run testng/othervm stream.XMLEventReaderTest.Bug8153781 * @summary Test if method skipDTD of class XMLDTDScannerImpl will correctly skip the DTD section, * even if a call to XMLEntityScanner.scanData for skipping to the closing ']' returns true. diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Issue40Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Issue40Test.java index 9ed53c5783304..95f664dfee053 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Issue40Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Issue40Test.java @@ -38,7 +38,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.Issue40Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.Issue40Test * @run testng/othervm stream.XMLEventReaderTest.Issue40Test * @summary Test XMLEventReader.getElementText() works after calling peek(). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/JDK8201138.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/JDK8201138.java index 0ff6191cc3127..0ed6b58895c6c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/JDK8201138.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/JDK8201138.java @@ -42,7 +42,7 @@ * @test * @bug 8201138 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.JDK8201138 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.JDK8201138 * @run testng/othervm stream.XMLEventReaderTest.JDK8201138 * @summary Verifies a fix that set the type and data properly in the loop */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/JDK8209615.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/JDK8209615.java index f0e143632d39f..281f385c73271 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/JDK8209615.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/JDK8209615.java @@ -35,7 +35,7 @@ * @test * @bug 8209615 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventReaderTest.JDK8209615 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventReaderTest.JDK8209615 * @run testng/othervm stream.XMLEventReaderTest.JDK8209615 * @summary Verifies that the parser continues parsing the character data */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/ReaderToWriterTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/ReaderToWriterTest.java index 28b871afcd951..59a2bd313ab2c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/ReaderToWriterTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/ReaderToWriterTest.java @@ -48,7 +48,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventWriterTest.ReaderToWriterTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventWriterTest.ReaderToWriterTest * @run testng/othervm stream.XMLEventWriterTest.ReaderToWriterTest * @summary Test XMLEventWriter. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/XMLEventWriterTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/XMLEventWriterTest.java index 3dd7e25de3c2c..afc23e959a4d2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/XMLEventWriterTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/XMLEventWriterTest.java @@ -42,7 +42,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLEventWriterTest.XMLEventWriterTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLEventWriterTest.XMLEventWriterTest * @run testng/othervm stream.XMLEventWriterTest.XMLEventWriterTest * @summary Test XMLEventWriter. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6756677Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6756677Test.java index 2e4b41dce2d93..90187dd0cd68d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6756677Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6756677Test.java @@ -39,7 +39,7 @@ * @bug 6756677 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest * @compile MyInputFactory.java - * @run testng/othervm -DrunSecMngr=true stream.XMLInputFactoryTest.Bug6756677Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLInputFactoryTest.Bug6756677Test * @run testng/othervm stream.XMLInputFactoryTest.Bug6756677Test * @summary Test XMLInputFactory.newFactory(String factoryId, ClassLoader classLoader). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6909759Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6909759Test.java index 562b7a3d55955..707518e01125c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6909759Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6909759Test.java @@ -36,7 +36,7 @@ * @test * @bug 6909759 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLInputFactoryTest.Bug6909759Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLInputFactoryTest.Bug6909759Test * @run testng/othervm stream.XMLInputFactoryTest.Bug6909759Test * @summary Test createXMLStreamReader with StreamSource. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/IssueTracker38.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/IssueTracker38.java index a70288a9346a0..ab932b857dcb2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/IssueTracker38.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/IssueTracker38.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLInputFactoryTest.IssueTracker38 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLInputFactoryTest.IssueTracker38 * @run testng/othervm stream.XMLInputFactoryTest.IssueTracker38 * @summary Test createXMLEventReader from DOM or SAX source is unsupported. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java index aabfa430581a3..1129e4d522e15 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java @@ -37,7 +37,7 @@ * @test * @bug 6846132 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLOutputFactoryTest.Bug6846132Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLOutputFactoryTest.Bug6846132Test * @run testng/othervm stream.XMLOutputFactoryTest.Bug6846132Test * @summary Test createXMLStreamWriter with SAXResult won't throw a NullPointerException. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/DuplicateNSDeclarationTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/DuplicateNSDeclarationTest.java index 99c12487cf7b2..d202dadecaba8 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/DuplicateNSDeclarationTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/DuplicateNSDeclarationTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLOutputFactoryTest.DuplicateNSDeclarationTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLOutputFactoryTest.DuplicateNSDeclarationTest * @run testng/othervm stream.XMLOutputFactoryTest.DuplicateNSDeclarationTest * @summary Test the writing of duplicate namespace declarations when IS_REPAIRING_NAMESPACES is ture. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/StreamResultTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/StreamResultTest.java index 47b089ae55fc0..2ba4177d0a3db 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/StreamResultTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/StreamResultTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLOutputFactoryTest.StreamResultTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLOutputFactoryTest.StreamResultTest * @run testng/othervm stream.XMLOutputFactoryTest.StreamResultTest * @summary Test create XMLWriter with variant Result. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLResolverTest/XMLResolverTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLResolverTest/XMLResolverTest.java index 628977e2656f4..e0e84869a2fb0 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLResolverTest/XMLResolverTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLResolverTest/XMLResolverTest.java @@ -40,7 +40,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLResolverTest.XMLResolverTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLResolverTest.XMLResolverTest * @run testng/othervm stream.XMLResolverTest.XMLResolverTest * @summary Test XMLResolver. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamExceptionTest/ExceptionTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamExceptionTest/ExceptionTest.java index 05f9aaecd0e36..445fd457629ec 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamExceptionTest/ExceptionTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamExceptionTest/ExceptionTest.java @@ -34,7 +34,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamExceptionTest.ExceptionTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamExceptionTest.ExceptionTest * @run testng/othervm stream.XMLStreamExceptionTest.ExceptionTest * @summary Test XMLStreamException contains the message of the wrapped exception. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481615.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481615.java index 87e70ab9cd90b..a73129a4ee7d7 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481615.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481615.java @@ -37,7 +37,7 @@ * @test * @bug 6481615 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamFilterTest.Bug6481615 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamFilterTest.Bug6481615 * @run testng/othervm stream.XMLStreamFilterTest.Bug6481615 * @summary Test Filtered XMLStreamReader can return the event type if current state is START_ELEMENT. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481678.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481678.java index daec8fb9cd2e6..7a83b01a0d98b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481678.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481678.java @@ -42,7 +42,7 @@ * @test * @bug 6481678 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamFilterTest.Bug6481678 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamFilterTest.Bug6481678 * @run testng/othervm stream.XMLStreamFilterTest.Bug6481678 * @summary Test Filtered XMLStreamReader parses namespace correctly. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/HasNextTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/HasNextTest.java index ad4c50dce75da..918e4ff77a960 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/HasNextTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/HasNextTest.java @@ -36,7 +36,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamFilterTest.HasNextTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamFilterTest.HasNextTest * @run testng/othervm stream.XMLStreamFilterTest.HasNextTest * @summary Test Filtered XMLStreamReader hasNext() always return the correct value if repeat to call it. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java index 93e934c7fe395..9981b8cdc8d24 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java @@ -34,7 +34,7 @@ * @test * @bug 6218794 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.BOMTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.BOMTest * @run testng/othervm stream.XMLStreamReaderTest.BOMTest * @summary Test XMLStreamReader parses BOM UTF-8 and BOM UTF-16 big endian stream. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6388460.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6388460.java index 5c8096b45af67..782cef14452dd 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6388460.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6388460.java @@ -43,7 +43,7 @@ * @test * @bug 6388460 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.Bug6388460 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.Bug6388460 * @run testng/othervm stream.XMLStreamReaderTest.Bug6388460 * @summary Test StAX parser can parse UTF-16 wsdl. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6472982Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6472982Test.java index a4bec110fe95b..b67b39cd0969c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6472982Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6472982Test.java @@ -37,7 +37,7 @@ * @test * @bug 6472982 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.Bug6472982Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.Bug6472982Test * @run testng/othervm stream.XMLStreamReaderTest.Bug6472982Test * @summary Test XMLStreamReader.getNamespaceContext().getPrefix("") won't throw IllegalArgumentException. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6767322Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6767322Test.java index 49f03ca4ba08e..8b13cba975aef 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6767322Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6767322Test.java @@ -36,7 +36,7 @@ * @test * @bug 6767322 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.Bug6767322Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.Bug6767322Test * @run testng/othervm stream.XMLStreamReaderTest.Bug6767322Test * @summary Test XMLStreamReader.getVersion() returns null if a version isn't declared. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6847819Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6847819Test.java index cdf353ecafe35..bfec69af1431b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6847819Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6847819Test.java @@ -35,7 +35,7 @@ * @test * @bug 6847819 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.Bug6847819Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.Bug6847819Test * @run testng/othervm stream.XMLStreamReaderTest.Bug6847819Test * @summary Test StAX parser shall throw XMLStreamException for illegal xml declaration. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BugTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BugTest.java index 508b52e41dd60..073d782a8b3bc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BugTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BugTest.java @@ -39,7 +39,7 @@ * @test * @bug 8069098 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.BugTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.BugTest * @run testng/othervm stream.XMLStreamReaderTest.BugTest * @summary Test StAX parser can parse xml without declaration. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DefaultAttributeTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DefaultAttributeTest.java index 898bf3e33322c..3dbd217976d18 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DefaultAttributeTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DefaultAttributeTest.java @@ -40,7 +40,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.DefaultAttributeTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.DefaultAttributeTest * @run testng/othervm stream.XMLStreamReaderTest.DefaultAttributeTest * @summary Test StAX parses namespace and attribute. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DoubleXmlnsTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DoubleXmlnsTest.java index 1b47db5f4b338..0ba486800860d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DoubleXmlnsTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DoubleXmlnsTest.java @@ -36,7 +36,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.DoubleXmlnsTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.DoubleXmlnsTest * @run testng/othervm stream.XMLStreamReaderTest.DoubleXmlnsTest * @summary Test double namespaces and nested namespaces. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IsValidatingTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IsValidatingTest.java index 44c0c1fcd2c6f..84de5d22a27d7 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IsValidatingTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IsValidatingTest.java @@ -35,7 +35,7 @@ * @test * @bug 6440324 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.IsValidatingTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.IsValidatingTest * @run testng/othervm stream.XMLStreamReaderTest.IsValidatingTest * @summary Test StAX can accept non-existent DTD if IS_VALIDATING if false. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue44Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue44Test.java index f4f8f5dbdc016..497c5b1316288 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue44Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue44Test.java @@ -34,7 +34,7 @@ * @test * @bug 6631262 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.Issue44Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.Issue44Test * @run testng/othervm stream.XMLStreamReaderTest.Issue44Test * @summary Test XMLStreamReader.getName() shall throw IllegalStateException if current event is not start/end element. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue47Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue47Test.java index 7d456463a4be0..c74569dd49ca7 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue47Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue47Test.java @@ -37,7 +37,7 @@ * @test * @bug 6631265 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.Issue47Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.Issue47Test * @run testng/othervm stream.XMLStreamReaderTest.Issue47Test * @summary Test XMLStreamReader.standaloneSet() presents if input document has a value for "standalone" attribute in xml declaration. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker24.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker24.java index 1d7041d58b236..9faa9028a68b9 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker24.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker24.java @@ -35,7 +35,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.IssueTracker24 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.IssueTracker24 * @run testng/othervm stream.XMLStreamReaderTest.IssueTracker24 * @summary Test no prefix is represented by "", not null. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker35.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker35.java index 2cc0a483ae60d..197ffbd9cf798 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker35.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker35.java @@ -36,7 +36,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.IssueTracker35 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.IssueTracker35 * @run testng/othervm stream.XMLStreamReaderTest.IssueTracker35 * @summary Test StAX parse xsd document including external DTD. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker70.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker70.java index c107c18110fa6..277eed57037b1 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker70.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker70.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.IssueTracker70 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.IssueTracker70 * @run testng/othervm stream.XMLStreamReaderTest.IssueTracker70 * @summary Test it can retrieve attribute with null or empty name space. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req5Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req5Test.java index 0c753ac3be40a..5898049acbbd3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req5Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req5Test.java @@ -34,7 +34,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.Jsr173MR1Req5Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.Jsr173MR1Req5Test * @run testng/othervm stream.XMLStreamReaderTest.Jsr173MR1Req5Test * @summary Test XMLStreamReader parses namespace declaration within element when NamespaceAware turns off and on. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req8Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req8Test.java index 49908781cd1aa..6d2755480c087 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req8Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req8Test.java @@ -34,7 +34,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.Jsr173MR1Req8Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.Jsr173MR1Req8Test * @run testng/othervm stream.XMLStreamReaderTest.Jsr173MR1Req8Test * @summary Test XMLStreamReader parses attribute with namespace aware. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/NamespaceTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/NamespaceTest.java index 334011befc774..a90e465b922df 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/NamespaceTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/NamespaceTest.java @@ -38,7 +38,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.NamespaceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.NamespaceTest * @run testng/othervm stream.XMLStreamReaderTest.NamespaceTest * @summary Test StAX parser processes namespace. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/StreamReaderTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/StreamReaderTest.java index cc8ac7bbd9f4a..3d83e2342f633 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/StreamReaderTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/StreamReaderTest.java @@ -37,7 +37,7 @@ * @test * @bug 8167340 8204329 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.StreamReaderTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.StreamReaderTest * @run testng/othervm stream.XMLStreamReaderTest.StreamReaderTest * @summary Verifies patches for StreamReader bugs */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/SupportDTDTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/SupportDTDTest.java index bfdfb76e06f32..0fa1183302bb3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/SupportDTDTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/SupportDTDTest.java @@ -44,7 +44,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.SupportDTDTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.SupportDTDTest * @run testng/othervm stream.XMLStreamReaderTest.SupportDTDTest * @summary Test SUPPORT_DTD and IS_REPLACING_ENTITY_REFERENCES. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/VoiceXMLDTDTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/VoiceXMLDTDTest.java index a31b445880c9f..6e771ad4ceb95 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/VoiceXMLDTDTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/VoiceXMLDTDTest.java @@ -33,7 +33,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.VoiceXMLDTDTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.VoiceXMLDTDTest * @run testng/othervm stream.XMLStreamReaderTest.VoiceXMLDTDTest * @summary Test parsing Voice XML DTD. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/XML11Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/XML11Test.java index 95a88e5eb4b5c..be495f03af71d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/XML11Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/XML11Test.java @@ -33,7 +33,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamReaderTest.XML11Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamReaderTest.XML11Test * @run testng/othervm stream.XMLStreamReaderTest.XML11Test * @summary Test parsing xml 1.1. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/AttributeEscapeTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/AttributeEscapeTest.java index e7378e11170e5..971a89535a207 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/AttributeEscapeTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/AttributeEscapeTest.java @@ -42,7 +42,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.AttributeEscapeTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.AttributeEscapeTest * @run testng/othervm stream.XMLStreamWriterTest.AttributeEscapeTest * @summary Test XMLStreamWriter shall escape the illegal characters. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6452107.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6452107.java index 35472f0713dac..82205353cab2d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6452107.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6452107.java @@ -38,7 +38,7 @@ * @test * @bug 6452107 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.Bug6452107 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.Bug6452107 * @run testng/othervm stream.XMLStreamWriterTest.Bug6452107 * @summary Test StAX can write ISO-8859-1 encoding XML. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6600882Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6600882Test.java index e17b04da265e8..11e0c2d1319ab 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6600882Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6600882Test.java @@ -36,7 +36,7 @@ * @test * @bug 6600882 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.Bug6600882Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.Bug6600882Test * @run testng/othervm stream.XMLStreamWriterTest.Bug6600882Test * @summary Test toString(), hashCode() of XMLStreamWriter . */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6675332Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6675332Test.java index 0e4f0aa22f563..b89cda5758c29 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6675332Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6675332Test.java @@ -39,7 +39,7 @@ * @test * @bug 6675332 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.Bug6675332Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.Bug6675332Test * @run testng/othervm stream.XMLStreamWriterTest.Bug6675332Test * @summary Test XMLStreamWriter writeAttribute when IS_REPAIRING_NAMESPACES is true. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug7037352Test.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug7037352Test.java index 8729d9f271110..2d68346443083 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug7037352Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug7037352Test.java @@ -37,7 +37,7 @@ * @test * @bug 7037352 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.Bug7037352Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.Bug7037352Test * @run testng/othervm stream.XMLStreamWriterTest.Bug7037352Test * @summary Test XMLStreamWriter.getNamespaceContext().getPrefix with XML_NS_URI and XMLNS_ATTRIBUTE_NS_URI. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/DomUtilTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/DomUtilTest.java index bef8db02e6ef7..c33092534e059 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/DomUtilTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/DomUtilTest.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.DomUtilTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.DomUtilTest * @run testng/othervm stream.XMLStreamWriterTest.DomUtilTest * @summary Test XMLStreamWriter writes a soap message. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EmptyElementTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EmptyElementTest.java index d40bcae712ce8..bb91e14c7201f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EmptyElementTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EmptyElementTest.java @@ -35,7 +35,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.EmptyElementTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.EmptyElementTest * @run testng/othervm stream.XMLStreamWriterTest.EmptyElementTest * @summary Test XMLStreamWriter writes namespace and attribute after writeEmptyElement. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EncodingTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EncodingTest.java index ced54992790c0..ad1e9e2c4be87 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EncodingTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EncodingTest.java @@ -35,7 +35,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.EncodingTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.EncodingTest * @run testng/othervm stream.XMLStreamWriterTest.EncodingTest * @summary Test XMLStreamWriter writes a document with encoding setting. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NamespaceTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NamespaceTest.java index 7e574bc879f07..ae268155e0c1f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NamespaceTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NamespaceTest.java @@ -38,7 +38,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.NamespaceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.NamespaceTest * @run testng/othervm stream.XMLStreamWriterTest.NamespaceTest * @summary Test the writing of Namespaces. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NullUriDetectionTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NullUriDetectionTest.java index 00f7a62dadad3..1170fb0ffb9e2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NullUriDetectionTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NullUriDetectionTest.java @@ -35,7 +35,7 @@ * @test * @bug 6391922 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.NullUriDetectionTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.NullUriDetectionTest * @run testng/othervm stream.XMLStreamWriterTest.NullUriDetectionTest * @summary Test XMLStreamWriter can writeDefaultNamespace(null). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SqeLinuxTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SqeLinuxTest.java index ea71a065817fa..f6234bc44120b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SqeLinuxTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SqeLinuxTest.java @@ -35,7 +35,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.SqeLinuxTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.SqeLinuxTest * @run testng/othervm stream.XMLStreamWriterTest.SqeLinuxTest * @summary Test XMLStreamWriter can output multiple declarations if IS_REPAIRING_NAMESPACES is false. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SurrogatesTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SurrogatesTest.java index 4af0c3df23a7d..cadc7fbc40eb2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SurrogatesTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SurrogatesTest.java @@ -44,7 +44,7 @@ * @test * @bug 8145974 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.SurrogatesTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.SurrogatesTest * @run testng/othervm stream.XMLStreamWriterTest.SurrogatesTest * @summary Check that XMLStreamWriter generates valid xml with surrogate pair * used within element text diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/UnprefixedNameTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/UnprefixedNameTest.java index 68fab1bdb5bb3..4fc07a4894f76 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/UnprefixedNameTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/UnprefixedNameTest.java @@ -35,7 +35,7 @@ * @test * @bug 6394074 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.UnprefixedNameTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.UnprefixedNameTest * @run testng/othervm stream.XMLStreamWriterTest.UnprefixedNameTest * @summary Test XMLStreamWriter namespace prefix with writeDefaultNamespace. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/WriterTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/WriterTest.java index abb9957a25633..f0ba0306e1086 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/WriterTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/WriterTest.java @@ -48,7 +48,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.WriterTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.WriterTest * @run testng/othervm stream.XMLStreamWriterTest.WriterTest * @summary Test XMLStreamWriter functionality. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/XMLStreamWriterTest.java b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/XMLStreamWriterTest.java index 832f9e38e3be2..894a9c96c88a0 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/XMLStreamWriterTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/XMLStreamWriterTest.java @@ -44,7 +44,7 @@ * @test * @bug 6347190 8139584 8216408 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true stream.XMLStreamWriterTest.XMLStreamWriterTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow stream.XMLStreamWriterTest.XMLStreamWriterTest * @run testng/othervm stream.XMLStreamWriterTest.XMLStreamWriterTest * @summary Tests XMLStreamWriter. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug4693341Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug4693341Test.java index 1e4266d65e7eb..12b30b07d7cdc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug4693341Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug4693341Test.java @@ -48,7 +48,7 @@ * @test * @bug 4693341 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug4693341Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug4693341Test * @run testng/othervm transform.Bug4693341Test * @summary Test transform with external dtd. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug4892774.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug4892774.java index 0419c1cf8bce4..a69d21e4899b6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug4892774.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug4892774.java @@ -50,7 +50,7 @@ * @test * @bug 4892774 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug4892774 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug4892774 * @run testng/othervm transform.Bug4892774 * @summary Test identity transformer with all possible types of Source and Result combinations for doucment version and encoding information. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug5073477.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug5073477.java index eb8853da89143..f416386173456 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug5073477.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug5073477.java @@ -35,7 +35,7 @@ * @test * @bug 5073477 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug5073477 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug5073477 * @run testng/othervm transform.Bug5073477 * @summary Test DOMResult.setNextSibling works correctly. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6175602.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6175602.java index dede016d4ff4f..b6ca27670a234 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6175602.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6175602.java @@ -36,7 +36,7 @@ * @test * @bug 6175602 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6175602 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6175602 * @run testng/othervm transform.Bug6175602 * @summary Test compilation of MsWordXMLImport.xsl. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6206491.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6206491.java index 2c60db3cc3dd7..a90da9e091735 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6206491.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6206491.java @@ -49,7 +49,7 @@ * @test * @bug 6206491 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6206491 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6206491 * @run testng/othervm transform.Bug6206491 * @summary Test key searches over more than one document. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6216226Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6216226Test.java index 9ba16dbc9c1cf..1936e1bb05e97 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6216226Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6216226Test.java @@ -43,7 +43,7 @@ * @test * @bug 6216226 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6216226Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6216226Test * @run testng/othervm transform.Bug6216226Test * @summary Test StreamResult(File) is closed after transform(). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6311448.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6311448.java index 9cfec4471f3cb..c3eaca59f1efd 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6311448.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6311448.java @@ -42,7 +42,7 @@ * @test * @bug 6311448 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6311448 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6311448 * @run testng/othervm transform.Bug6311448 * @summary Test XML transformer can output Unicode surrorate pair. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6384805.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6384805.java index b32d1d8352437..e4069b332560e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6384805.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6384805.java @@ -42,7 +42,7 @@ * @test * @bug 6384805 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6384805 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6384805 * @run testng/othervm transform.Bug6384805 * @summary Test XSLTC can parse XML namespace when nodeset is created within a template. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6465722.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6465722.java index ecf248b8523d9..1efacc7ce350a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6465722.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6465722.java @@ -42,7 +42,7 @@ * @test * @bug 6465722 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6465722 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6465722 * @run testng/othervm transform.Bug6465722 * @summary Test Transformer can transform the node attribute prefixed with a namespace. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6467808.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6467808.java index 61c6692b755d1..fa6a287bc1a02 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6467808.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6467808.java @@ -40,7 +40,7 @@ * @test * @bug 6467808 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6467808 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6467808 * @run testng/othervm transform.Bug6467808 * @summary Test Transformer can parse re-declare prefixed namespace mappings. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490380.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490380.java index 255dd878c4e46..851fac7083753 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490380.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490380.java @@ -39,7 +39,7 @@ * @test * @bug 6490380 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6490380 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6490380 * @run testng/othervm transform.Bug6490380 * @summary Test only a single DOCTYPE declaration is generated through transforming. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490921.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490921.java index f9bea6978a17a..e2d2b179218fc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490921.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6490921.java @@ -49,7 +49,7 @@ * @test * @bug 6490921 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6490921 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6490921 * @run testng/othervm transform.Bug6490921 * @summary Test property org.xml.sax.driver is always applied in transformer API. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6513892.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6513892.java index acb81122327a8..145de8eecf00d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6513892.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6513892.java @@ -42,7 +42,7 @@ * @test * @bug 6513892 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6513892 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6513892 * @run testng/othervm transform.Bug6513892 * @summary Test the output encoding of the transform is the same as that of the redirect extension. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6537167.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6537167.java index 6c1938e4afd9e..97cbbbd1b1de2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6537167.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6537167.java @@ -39,7 +39,7 @@ * @test * @bug 6537167 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6537167 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6537167 * @run testng/othervm transform.Bug6537167 * @summary Test transforming for particular xsl files. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6540545.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6540545.java index 2218243520664..1323cdff886b2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6540545.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6540545.java @@ -38,7 +38,7 @@ * @test * @bug 6540545 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6540545 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6540545 * @run testng/othervm transform.Bug6540545 * @summary Test XSLT as expected. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6551616.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6551616.java index 27c6ddf008c7e..dddbbea396b50 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6551616.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6551616.java @@ -25,7 +25,7 @@ * @test * @bug 6551616 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6551616 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6551616 * @run testng/othervm transform.Bug6551616 * @summary Test SAX2StAXEventWriter. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6559595.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6559595.java index f1d4c3d8cfec4..6f3481a463efe 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6559595.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6559595.java @@ -42,7 +42,7 @@ * @test * @bug 6559595 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6559595 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6559595 * @run testng/othervm transform.Bug6559595 * @summary Test ampersand in href attribute is not handled specially even if output is set to HTML. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6565260.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6565260.java index df14bc3760396..d8c3218ae3796 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6565260.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6565260.java @@ -38,7 +38,7 @@ * @test * @bug 6565260 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6565260 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6565260 * @run testng/othervm transform.Bug6565260 * @summary Test use-attribute-sets attribute is not used for the root node. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6940416.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6940416.java index e00da88993cb8..7a621141bc77d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6940416.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Bug6940416.java @@ -46,7 +46,7 @@ * @test * @bug 6940416 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Bug6940416 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Bug6940416 * @run testng/othervm transform.Bug6940416 * @summary Test transforming correctly. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/BugDB12665704Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/BugDB12665704Test.java index ecd61f603ec80..a68f805521f00 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/BugDB12665704Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/BugDB12665704Test.java @@ -50,7 +50,7 @@ * @test * @bug 6935697 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.BugDB12665704Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.BugDB12665704Test * @run testng/othervm transform.BugDB12665704Test * @summary Test Transformer can compile large xsl file. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CLITest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CLITest.java index 57f3009b68220..883e5ace08af2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CLITest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CLITest.java @@ -24,7 +24,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CLITest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CLITest * @run testng/othervm transform.CLITest * @summary Test internal transform CLI. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6401137Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6401137Test.java index b17df31182403..62220163c0dac 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6401137Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6401137Test.java @@ -44,7 +44,7 @@ * @test * @bug 6401137 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6401137Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6401137Test * @run testng/othervm transform.CR6401137Test * @summary Test transform certain xsl. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6551600Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6551600Test.java index 615a973be021c..2c1764d39f33e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6551600Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6551600Test.java @@ -49,7 +49,7 @@ * @bug 6551600 * @requires os.family == "windows" * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6551600Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6551600Test * @run testng/othervm transform.CR6551600Test * @summary Test using UNC path as StreamResult. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6577667Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6577667Test.java index fec10a1be1ba7..cac380f1a5044 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6577667Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6577667Test.java @@ -37,7 +37,7 @@ * @test * @bug 6577667 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6577667Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6577667Test * @run testng/othervm transform.CR6577667Test * @summary Test XSLT can parse statement "not(preceding-sibling::* or following-sibling::*)" in stylesheet file. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6652519Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6652519Test.java index 2bfe0631a716f..505d5930b459a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6652519Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6652519Test.java @@ -41,7 +41,7 @@ * @test * @bug 6652519 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6652519Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6652519Test * @run testng/othervm transform.CR6652519Test * @summary Test transfoming from StreamSource to DOMResult. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6689809Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6689809Test.java index 5ad290060ac12..97f0f82e9da1d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6689809Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6689809Test.java @@ -37,7 +37,7 @@ * @test * @bug 6689809 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6689809Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6689809Test * @run testng/othervm transform.CR6689809Test * @summary Test Transformer can handle XPath predicates in xsl:key elements. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6905829Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6905829Test.java index 78006b5c8f4da..9b9aa76ae4512 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6905829Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6905829Test.java @@ -39,7 +39,7 @@ * @test * @bug 6905829 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6905829Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6905829Test * @run testng/othervm transform.CR6905829Test * @summary Test XSLT can parse certain xsl. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6935697Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6935697Test.java index fe65ee0e7a9dd..744dfdee274a5 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6935697Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6935697Test.java @@ -43,7 +43,7 @@ * @test * @bug 6935697 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6935697Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6935697Test * @run testng/othervm transform.CR6935697Test * @summary Test XSLT can parse the certain xsl. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6941869Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6941869Test.java index 13331ce4cc1c8..f6a3dd2275b23 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6941869Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6941869Test.java @@ -39,7 +39,7 @@ * @test * @bug 6941869 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6941869Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6941869Test * @run testng/othervm transform.CR6941869Test * @summary Test XSLT evaluate "count(.|key('props', d/e)[1])" correctly. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6957215Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6957215Test.java index 24c3bfd43180d..1e18d7c7478a6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR6957215Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR6957215Test.java @@ -46,7 +46,7 @@ * @test * @bug 6957215 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR6957215Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR6957215Test * @run testng/othervm transform.CR6957215Test * @summary Test XSLT generates the element content using xsl:attribute instructions. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/CR7098746Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/CR7098746Test.java index 04ec9fd8ea3a4..b39593295a8af 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/CR7098746Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/CR7098746Test.java @@ -41,7 +41,7 @@ * @test * @bug 7098746 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.CR7098746Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.CR7098746Test * @run testng/othervm transform.CR7098746Test * @summary Test transforming as expected. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/DOMResultTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/DOMResultTest.java index cbfaf0f924a2e..d69cf7af21076 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/DOMResultTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/DOMResultTest.java @@ -49,7 +49,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.DOMResultTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.DOMResultTest * @run testng/othervm transform.DOMResultTest * @summary Test DOMResult. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/FactoryFindTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/FactoryFindTest.java index f1267ce4622c4..3486215c49090 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/FactoryFindTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/FactoryFindTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.FactoryFindTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.FactoryFindTest * @run testng/othervm transform.FactoryFindTest * @summary Test creating TransformerFactory with ContextClassLoader. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Issue2204Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Issue2204Test.java index dbba31b46dc44..398f935a6489b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Issue2204Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Issue2204Test.java @@ -38,7 +38,7 @@ * @test * @bug 6905829 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Issue2204Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Issue2204Test * @run testng/othervm transform.Issue2204Test * @summary Test XSLT can work against the certain xsl. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/Issue2290Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/Issue2290Test.java index 8047d83fec15f..35f7aa6fc4014 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/Issue2290Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/Issue2290Test.java @@ -47,7 +47,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.Issue2290Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.Issue2290Test * @run testng/othervm transform.Issue2290Test * @summary Test XSL extension for RTF works, for https://issues.apache.org/jira/i#browse/XALANJ-2290. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/NamespacePrefixTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/NamespacePrefixTest.java index 6602286fe901c..44a7822479e29 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/NamespacePrefixTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/NamespacePrefixTest.java @@ -46,7 +46,7 @@ * @test * @bug 8167179 * @library /javax/xml/jaxp/libs - * @run testng/othervm -DrunSecMngr=true transform.NamespacePrefixTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.NamespacePrefixTest * @run testng/othervm transform.NamespacePrefixTest * @summary This class tests the generation of namespace prefixes */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/OpenJDK100017Test.java b/test/jaxp/javax/xml/jaxp/unittest/transform/OpenJDK100017Test.java index 8aff9628bbaea..425468ef26a3d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/OpenJDK100017Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/OpenJDK100017Test.java @@ -40,7 +40,7 @@ * @test * @bug 6883209 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.OpenJDK100017Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.OpenJDK100017Test * @run testng/othervm transform.OpenJDK100017Test * @summary Test XSLT won't cause StackOverflow when it handle many characters. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/SAX2DOMTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/SAX2DOMTest.java index 34e092101bc06..673c4b212f803 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/SAX2DOMTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/SAX2DOMTest.java @@ -48,7 +48,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.SAX2DOMTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.SAX2DOMTest * @run testng/othervm transform.SAX2DOMTest * @summary Test Transforming from SAX to DOM. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/SecureProcessingTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/SecureProcessingTest.java index 569d987ab7397..b46e6d7e4807a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/SecureProcessingTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/SecureProcessingTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.SecureProcessingTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.SecureProcessingTest * @run testng/othervm transform.SecureProcessingTest * @summary Test XSLT shall report TransformerException for unsafe xsl when FEATURE_SECURE_PROCESSING is true. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/SourceTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/SourceTest.java index dd92c26065aa0..a8589c1ece397 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/SourceTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/SourceTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.SourceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.SourceTest * @run testng/othervm transform.SourceTest * @summary Test Sources. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/StAXSourceTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/StAXSourceTest.java index 29d08e3e56bcf..78a397969d7fc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/StAXSourceTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/StAXSourceTest.java @@ -61,7 +61,7 @@ * @modules java.xml/com.sun.xml.internal.stream * @clean MyXMLInputFactoryImpl MyXMLStreamReader * @build MyXMLInputFactoryImpl MyXMLStreamReader - * @run testng/othervm -DrunSecMngr=true transform.StAXSourceTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.StAXSourceTest * @run testng/othervm transform.StAXSourceTest * @summary Test parsing from StAXSource. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/StylesheetTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/StylesheetTest.java index cf6aa98f30fc8..29d211db78813 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/StylesheetTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/StylesheetTest.java @@ -38,7 +38,7 @@ * @test * @bug 8058152 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.StylesheetTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.StylesheetTest * @run testng/othervm transform.StylesheetTest * @summary this test contains test cases for verifying stylesheet */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/TemplatesTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/TemplatesTest.java index f0cd144166136..270507a8c2d5e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/TemplatesTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/TemplatesTest.java @@ -35,7 +35,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.TemplatesTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.TemplatesTest * @run testng/othervm transform.TemplatesTest * @summary This class contains tests for Templates. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/TransformerFactoryTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/TransformerFactoryTest.java index 550da2bc8d278..064461a56dc9c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/TransformerFactoryTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/TransformerFactoryTest.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.TransformerFactoryTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.TransformerFactoryTest * @run testng/othervm transform.TransformerFactoryTest * @summary Test TransformerFactory. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/TransformerTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/TransformerTest.java index 32f79d674639b..e25f2bf3c2c8f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/TransformerTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/TransformerTest.java @@ -72,7 +72,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.TransformerTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.TransformerTest * @run testng/othervm transform.TransformerTest * @summary Transformer Tests * @bug 6272879 6305029 6505031 8150704 8162598 8169112 8169631 8169772 diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/XSLTFunctionsTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/XSLTFunctionsTest.java index 3f99410869b94..a358978557bd4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/XSLTFunctionsTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/XSLTFunctionsTest.java @@ -54,7 +54,7 @@ * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest * @compile DocumentExtFunc.java - * @run testng/othervm -DrunSecMngr=true transform.XSLTFunctionsTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.XSLTFunctionsTest * @run testng/othervm transform.XSLTFunctionsTest * @summary This class contains tests for XSLT functions. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/sax/Bug6451633.java b/test/jaxp/javax/xml/jaxp/unittest/transform/sax/Bug6451633.java index 77bc7b4a7e2cc..c6c1ae2433d36 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/sax/Bug6451633.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/sax/Bug6451633.java @@ -38,7 +38,7 @@ * @test * @bug 6451633 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.sax.Bug6451633 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.sax.Bug6451633 * @run testng/othervm transform.sax.Bug6451633 * @summary Test TransformerHandler ignores empty text node. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/transform/sort/SortTest.java b/test/jaxp/javax/xml/jaxp/unittest/transform/sort/SortTest.java index 8966ffeea120e..4e83f88dff14c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/transform/sort/SortTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/transform/sort/SortTest.java @@ -47,7 +47,7 @@ * @test * @bug 8193830 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true transform.sort.SortTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow transform.sort.SortTest * @run testng/othervm transform.sort.SortTest * @summary verify xsl:sort lang attribute */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/AnyElementTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/AnyElementTest.java index c12a151524500..ff006e9129ab9 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/AnyElementTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/AnyElementTest.java @@ -26,7 +26,7 @@ * @test * @bug 8080907 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.AnyElementTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.AnyElementTest * @run testng/othervm validation.AnyElementTest * @summary Test processContents attribute of any element */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966232.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966232.java index 05300cc696482..88dcd0a1159e4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966232.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966232.java @@ -39,7 +39,7 @@ * @test * @bug 4966232 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4966232 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4966232 * @run testng/othervm validation.Bug4966232 * @summary Test SchemaFactory.newSchema(Source) returns a Schema instance for DOMSource & SAXSource. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966254.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966254.java index 46e9fd230349c..6eb978c66704d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966254.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4966254.java @@ -39,7 +39,7 @@ * @test * @bug 4966254 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4966254 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4966254 * @run testng/othervm validation.Bug4966254 * @summary Test validate(StreamSource) & validate(StreamSource,null) works instead of throws IOException. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969042.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969042.java index e7b22fec08b81..3229af656ce0c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969042.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969042.java @@ -45,7 +45,7 @@ * @test * @bug 4969042 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4969042 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4969042 * @run testng/othervm validation.Bug4969042 * @summary Test ValidationHandler shall invoke ignorableWhitespace() of the * user-defined ContentHandler once the validator detects any ignorable whitespaces. diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969089.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969089.java index 74a75f75433bd..0c014d7503b68 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969089.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969089.java @@ -40,7 +40,7 @@ * @test * @bug 4969089 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4969089 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4969089 * @run testng/othervm validation.Bug4969089 * @summary Test when an ErrorHandler is set for a SchemaFactory, SchemaFactory.newSchema(Source[]) * method throws an exception that is not equal to the exception thrown from the ErrorHandler. diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969110.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969110.java index 5c7bac6dbc936..f4d3f4b1a26b1 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969110.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969110.java @@ -36,7 +36,7 @@ * @test * @bug 4969110 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4969110 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4969110 * @run testng/othervm validation.Bug4969110 * @summary Test ValidationHandler.set/getProperty() throws a correct exception * instead of a sun internal exception in case the "property name" parameter is invalid. diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969689.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969689.java index c0554c2478e21..1ed208aabb3a6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969689.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969689.java @@ -36,7 +36,7 @@ * @test * @bug 4969689 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4969689 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4969689 * @run testng/othervm validation.Bug4969689 * @summary Test SchemaFactory.get/setFeature() throw NullPointerException * instead of SAXNotRecognizedException in case the "feature name" parameter is null. diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969692.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969692.java index d78fe660b5fc3..d05389697869a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969692.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969692.java @@ -35,7 +35,7 @@ * @test * @bug 4969692 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4969692 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4969692 * @run testng/othervm validation.Bug4969692 * @summary Test Validator.get/setFeature() throw NullPointerException * instead of SAXNotRecognizedException in case the "feature name" parameter is null. diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969693.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969693.java index fd203f3c73450..8eca589566d74 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969693.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969693.java @@ -35,7 +35,7 @@ * @test * @bug 4969693 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4969693 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4969693 * @run testng/othervm validation.Bug4969693 * @summary Test Validator.get/setProperty() throw NullPointerException * instead of SAXNotRecognizedException in case the "property name" parameter is null. diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969695.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969695.java index 01d47b627e4ff..ef04b7374089a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969695.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969695.java @@ -35,7 +35,7 @@ * @test * @bug 4969695 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4969695 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4969695 * @run testng/othervm validation.Bug4969695 * @summary Test SchemaFactory.get/setProperty() throw NullPointerException * instead of SAXNotRecognizedException in case the "property name" parameter is null. diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969732.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969732.java index cfec3964c191d..990e2f6a4bee4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969732.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4969732.java @@ -44,7 +44,7 @@ * @test * @bug 4969732 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4969732 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4969732 * @run testng/othervm validation.Bug4969732 * @summary Test TypeInfoProvider.getElementTypeInfo() throws IllegalStateException * in case the method is not called from method startElement() or endElement(). diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970380.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970380.java index 4954f41948a5a..30c094cd83be6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970380.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970380.java @@ -35,7 +35,7 @@ * @test * @bug 4970380 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4970380 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4970380 * @run testng/othervm validation.Bug4970380 * @summary Test validatorHandler.getFeature(...) with unknown name and "http://xml.org/sax/features/namespace-prefixes". */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970383.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970383.java index 28809222c1297..67b9751c1dc2b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970383.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970383.java @@ -34,7 +34,7 @@ * @test * @bug 4970383 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4970383 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4970383 * @run testng/othervm validation.Bug4970383 * @summary Test validatorHandler.setFeature throws NullPointerException if name parameter is null. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970400.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970400.java index a8c761f23daa3..a20705a718da1 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970400.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970400.java @@ -33,7 +33,7 @@ * @test * @bug 4970400 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4970400 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4970400 * @run testng/othervm validation.Bug4970400 * @summary Test ValidatorHandler recognizes namespace-prefixes feature. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970402.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970402.java index c75604b4b5ef9..9b801d76d62c9 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970402.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970402.java @@ -47,7 +47,7 @@ * @test * @bug 4970402 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4970402 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4970402 * @run testng/othervm validation.Bug4970402 * @summary Test TypeInfoProvider's attribute accessing methods throw IndexOutOfBoundsException when index parameter is invalid. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970951.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970951.java index 91b2891fdbffb..210bd2ce932df 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970951.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4970951.java @@ -47,7 +47,7 @@ * @test * @bug 4970951 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4970951 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4970951 * @run testng/othervm validation.Bug4970951 * @summary Test TypeInfoProvider.isSpecified(...) return true if the attribute was originally present. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971605.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971605.java index 8654f283a0408..a8d10802541d1 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971605.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971605.java @@ -42,7 +42,7 @@ * @test * @bug 4971605 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4971605 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4971605 * @run testng/othervm validation.Bug4971605 * @summary Test SchemaFactory.newSchema(Source) returns a Schema instance for DOMSource. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971607.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971607.java index 385bef46b58ab..496f63a7bd460 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971607.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4971607.java @@ -34,7 +34,7 @@ * @test * @bug 4971607 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4971607 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4971607 * @run testng/othervm validation.Bug4971607 * @summary Test ValidatorHandler.getFeature(...) throws NullPointerException when name parameter is null. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4972882.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4972882.java index cf585a2df69d9..663056025f9b2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4972882.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4972882.java @@ -38,7 +38,7 @@ * @test * @bug 4972882 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4972882 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4972882 * @run testng/othervm validation.Bug4972882 * @summary Test Validator throws Exception when two identity-constraints are defined with the same {name} and {target namespace}. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4986844.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4986844.java index fb6dcdd421098..4796cff2a516a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4986844.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4986844.java @@ -34,7 +34,7 @@ * @test * @bug 4986844 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4986844 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4986844 * @run testng/othervm validation.Bug4986844 * @summary Test SchemaFactory can detect particle restriction. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4987574.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4987574.java index 75a7ee51fa67e..10f9157eef71f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4987574.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4987574.java @@ -39,7 +39,7 @@ * @test * @bug 4987574 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4987574 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4987574 * @run testng/othervm validation.Bug4987574 * @summary Test schemaFactory.newSchema doesn't throw NullPointerExceptio for empty schema. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988267.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988267.java index 2da7618ed7c1c..0f5205cbfe81f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988267.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988267.java @@ -34,7 +34,7 @@ * @test * @bug 4988267 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4988267 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4988267 * @run testng/othervm validation.Bug4988267 * @summary Test SchemaFactory can detect particle restriction. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988268.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988268.java index 8de45e95ff32c..8450d3e4a49a3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988268.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988268.java @@ -32,7 +32,7 @@ * @test * @bug 4988268 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4988268 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4988268 * @run testng/othervm validation.Bug4988268 * @summary Test the schema is valid. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988387.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988387.java index e9db60429ad2c..feaa8b0225082 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988387.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4988387.java @@ -34,7 +34,7 @@ * @test * @bug 4988387 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4988387 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4988387 * @run testng/othervm validation.Bug4988387 * @summary Test SchemaFactory can detect invalid XPath expressions. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4996446.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4996446.java index ba54622058013..dee3d838f29e4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4996446.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4996446.java @@ -40,7 +40,7 @@ * @test * @bug 4996446 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4996446 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4996446 * @run testng/othervm validation.Bug4996446 * @summary Test SchemaFactory can detect violations of the "Schema Component Constraint: Element Declarations Consistent". */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4997818.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4997818.java index 8c8d677c52030..223137c97512f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4997818.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug4997818.java @@ -39,7 +39,7 @@ * @test * @bug 4997818 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug4997818 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug4997818 * @run testng/othervm validation.Bug4997818 * @summary Test SchemaFactory.newSchema(...) throws an exception, which is thrown from LSResourceResolver. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug5011500.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug5011500.java index b3a85cadc68eb..189822e1fdf2f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug5011500.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug5011500.java @@ -44,7 +44,7 @@ * @test * @bug 5011500 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug5011500 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug5011500 * @run testng/othervm validation.Bug5011500 * @summary Test ValidatorHanlder and Validator can work for the xml document. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug5072946.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug5072946.java index 3d6b490f2c38e..e314e09b96dd0 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug5072946.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug5072946.java @@ -49,7 +49,7 @@ * @test * @bug 5072946 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug5072946 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug5072946 * @run testng/othervm validation.Bug5072946 * @summary Test Validator.validate(DOMSource,DOMResult) outputs to the result. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6378043.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6378043.java index 4bbc7560b192c..9f72835046202 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6378043.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6378043.java @@ -34,7 +34,7 @@ * @test * @bug 6378043 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6378043 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6378043 * @run testng/othervm validation.Bug6378043 * @summary Test XPath expression "child::" can be parsed. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6449797.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6449797.java index 8a96e05ae5f99..99de8bedc52e3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6449797.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6449797.java @@ -33,7 +33,7 @@ * @test * @bug 6449797 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6449797 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6449797 * @run testng/othervm validation.Bug6449797 * @summary Test SchemaFactory can parse the specified attribute value with a specified namespace. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6457662.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6457662.java index f6c54b14b645d..0cabf01b20f3d 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6457662.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6457662.java @@ -46,7 +46,7 @@ * @test * @bug 6457662 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6457662 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6457662 * @run testng/othervm validation.Bug6457662 * @summary Test a Validator checks sequence maxOccurs correctly when it validates document repeatedly. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6467424Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6467424Test.java index 5fa073eb2d5fb..0c7419d01dae4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6467424Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6467424Test.java @@ -52,7 +52,7 @@ * @test * @bug 6467424 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6467424Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6467424Test * @run testng/othervm validation.Bug6467424Test * @summary Test Validator augments the default delement value if feature element-default is on. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6483188.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6483188.java index b9b0812c8e751..616598bee8001 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6483188.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6483188.java @@ -39,7 +39,7 @@ * @test * @bug 6483188 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6483188 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6483188 * @run testng/othervm validation.Bug6483188 * @summary Test Schema Validator can handle element with having large maxOccurs, but doesn't accept sequence with having large maxOccurs in FEATURE_SECURE_PROCESSING mode. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6493687.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6493687.java index 71a1afee3f987..3d1054fac30ca 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6493687.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6493687.java @@ -31,7 +31,7 @@ * @test * @bug 6493687 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6493687 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6493687 * @run testng/othervm validation.Bug6493687 * @summary Test validator.validate(new DOMSource(node)) without any exception. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6509668.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6509668.java index f397677ce7350..d671aa9c02bc4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6509668.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6509668.java @@ -49,7 +49,7 @@ * @test * @bug 6509668 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6509668 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6509668 * @run testng/othervm validation.Bug6509668 * @summary Test TypeInfoProvider.getElementTypeInfo() for union type when startElement and endElement. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6526547.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6526547.java index 47d8d624c2133..f1b7bd215e67e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6526547.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6526547.java @@ -43,7 +43,7 @@ * @test * @bug 6526547 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6526547 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6526547 * @run testng/othervm validation.Bug6526547 * @summary Test document parsed without setting NamespaceAware can be validated with a Schema. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6531160.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6531160.java index 54e1e05ea90be..f47400bfb6dd3 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6531160.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6531160.java @@ -42,7 +42,7 @@ * @test * @bug 6531160 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6531160 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6531160 * @run testng/othervm validation.Bug6531160 * @summary Test document generated by newDocument() can be validated with a Schema. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6695843Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6695843Test.java index 88d37eec67e85..5a8d0c3cbe367 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6695843Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6695843Test.java @@ -44,7 +44,7 @@ * @test * @bug 6695843 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6695843Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6695843Test * @run testng/othervm validation.Bug6695843Test * @summary Test Validator should report accurate element type if there is a violation on a complexType with simpleContent that extends a base complexType. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6773084Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6773084Test.java index 21479c6a6e332..4a4556efac3dc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6773084Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6773084Test.java @@ -55,7 +55,7 @@ * @test * @bug 6773084 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6773084Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6773084Test * @run testng/othervm validation.Bug6773084Test * @summary Test Schema object is thread safe. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6859210.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6859210.java index c695aded8d742..d7232a0f6ee66 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6859210.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6859210.java @@ -42,7 +42,7 @@ * @test * @bug 6859210 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6859210 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6859210 * @run testng/othervm validation.Bug6859210 * @summary Test Schema Validator can parse xml when maxOccurs is large. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6925531Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6925531Test.java index 8059723d70093..6f6d2ecf73361 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6925531Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6925531Test.java @@ -51,8 +51,8 @@ * @test * @bug 6925531 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6925531Test - * @run testng/othervm validation.Bug6925531Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6925531Test + * @run testng/othervm -Djava.security.manager=allow validation.Bug6925531Test * @summary Test Validator can validate SAXSource when SecurityManager is set or FEATURE_SECURE_PROCESSING is on. */ @Listeners({jaxp.library.BasePolicy.class}) diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6946312Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6946312Test.java index e134d8b6b5c28..6b77db907a5b2 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6946312Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6946312Test.java @@ -48,7 +48,7 @@ * @test * @bug 6946312 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6946312Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6946312Test * @run testng/othervm validation.Bug6946312Test * @summary Test XML parser shall callback to ContentHandler when receiving characters data. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6954738_Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6954738_Test.java index 510298c865d2b..0d3b9219916ef 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6954738_Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Bug6954738_Test.java @@ -41,7 +41,7 @@ * @test * @bug 6954738 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Bug6954738_Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Bug6954738_Test * @run testng/othervm validation.Bug6954738_Test * @summary Test Validator can process a XML document containing an element with 8000 characters. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/CR6708840Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/CR6708840Test.java index 71f55a4f3c4c1..5334e10aea08a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/CR6708840Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/CR6708840Test.java @@ -47,7 +47,7 @@ * @test * @bug 6708840 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.CR6708840Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.CR6708840Test * @run testng/othervm validation.CR6708840Test * @summary Test Validator can process StAXSource. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.java b/test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.java index bccef3d37b888..6ecbba3014d80 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/CR6740048.java @@ -42,7 +42,7 @@ * @test * @bug 6740048 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.CR6740048 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.CR6740048 * @run testng/othervm validation.CR6740048 * @summary Test DocumentBuilder can be reused when the DocumentBuilderFactory sets schema. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/Issue682Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/Issue682Test.java index 459fa8c149a63..2608ea2ff0c7a 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/Issue682Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/Issue682Test.java @@ -42,7 +42,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.Issue682Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.Issue682Test * @run testng/othervm validation.Issue682Test * @summary Test comination of fields in , for https://issues.apache.org/jira/browse/XERCESJ-682. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/IssueTracker30.java b/test/jaxp/javax/xml/jaxp/unittest/validation/IssueTracker30.java index 6f0fb1b5a25a6..83840d1c6cc43 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/IssueTracker30.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/IssueTracker30.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.IssueTracker30 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.IssueTracker30 * @run testng/othervm validation.IssueTracker30 * @summary Test maxOccurs validation. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue43Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue43Test.java index b42f527289322..5fbe6d30dac5c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue43Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue43Test.java @@ -48,7 +48,7 @@ * @test * @bug 6631318 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.JaxpIssue43Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.JaxpIssue43Test * @run testng/othervm validation.JaxpIssue43Test * @summary Test creating schema from a DOM fragment with namespace. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue49.java b/test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue49.java index 7cf58257847a2..832f5f577d5f7 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue49.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/JaxpIssue49.java @@ -46,7 +46,7 @@ * @test * @bug 6684227 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.JaxpIssue49 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.JaxpIssue49 * @run testng/othervm validation.JaxpIssue49 * @summary Test property current-element-node works. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/LargeMaxOccursTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/LargeMaxOccursTest.java index 78ac556e80a28..e07e172764e82 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/LargeMaxOccursTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/LargeMaxOccursTest.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.LargeMaxOccursTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.LargeMaxOccursTest * @run testng/othervm validation.LargeMaxOccursTest * @summary Test Validator shall report error for maxOccurs > 5000 when FEATURE_SECURE_PROCESSING is on, except the schema can be applied for constant-space algorithm. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/MultiOccursTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/MultiOccursTest.java index 457cf697228ed..ad8a18a321edc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/MultiOccursTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/MultiOccursTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.MultiOccursTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.MultiOccursTest * @run testng/othervm validation.MultiOccursTest * @summary Test Schema Validator can parse multiple or unbounded occurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/MultiOccursUnboundedTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/MultiOccursUnboundedTest.java index 58062410c43ba..0fb2fb2248715 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/MultiOccursUnboundedTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/MultiOccursUnboundedTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.MultiOccursUnboundedTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.MultiOccursUnboundedTest * @run testng/othervm validation.MultiOccursUnboundedTest * @summary Test Schema Validator can parse multiple or unbounded occurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/OccursTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/OccursTest.java index 8e3613739d3cd..660d3919717d0 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/OccursTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/OccursTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.OccursTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.OccursTest * @run testng/othervm validation.OccursTest * @summary Test Schema Validator can parse multiple or unbounded occurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/OccursUnboundedTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/OccursUnboundedTest.java index 6e8213e0e8b6f..8e9e7dd1a5e44 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/OccursUnboundedTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/OccursUnboundedTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.OccursUnboundedTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.OccursUnboundedTest * @run testng/othervm validation.OccursUnboundedTest * @summary Test Schema Validator can parse multiple or unbounded occurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/OccursWildcardTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/OccursWildcardTest.java index f29da26225d84..5a53b6ca7a6d0 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/OccursWildcardTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/OccursWildcardTest.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.OccursWildcardTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.OccursWildcardTest * @run testng/othervm validation.OccursWildcardTest * @summary Test Schema Validator can parse multiple or unbounded occurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/OccursWildcardUnbounded.java b/test/jaxp/javax/xml/jaxp/unittest/validation/OccursWildcardUnbounded.java index 002c9983716d2..3b4c1f6a18dea 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/OccursWildcardUnbounded.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/OccursWildcardUnbounded.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.OccursWildcardUnbounded + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.OccursWildcardUnbounded * @run testng/othervm validation.OccursWildcardUnbounded * @summary Test Schema Validator can parse multiple or unbounded occurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesId005Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesId005Test.java index ac1450d05d3a2..03ecf71aa42ba 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesId005Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesId005Test.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.ParticlesId005Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.ParticlesId005Test * @run testng/othervm validation.ParticlesId005Test * @summary Test Schema Validator can parse multiple or unbounded occurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesIg004Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesIg004Test.java index 424d4f35c8635..86a84095d63b4 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesIg004Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesIg004Test.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.ParticlesIg004Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.ParticlesIg004Test * @run testng/othervm validation.ParticlesIg004Test * @summary Test particlesIg004.xsd. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesQ013Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesQ013Test.java index 77da3675b83ac..54a381c394d95 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesQ013Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/ParticlesQ013Test.java @@ -41,7 +41,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.ParticlesQ013Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.ParticlesQ013Test * @run testng/othervm validation.ParticlesQ013Test * @summary Test Schema Validator can parse multiple or unbounded occurs. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/TCKGroupA008Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/TCKGroupA008Test.java index 0f5e9dc5de563..4d9fea992c46f 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/TCKGroupA008Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/TCKGroupA008Test.java @@ -37,7 +37,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.TCKGroupA008Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.TCKGroupA008Test * @run testng/othervm validation.TCKGroupA008Test * @summary Test groupA008.xsd. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/ValidatorTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/ValidatorTest.java index 22317b325bb6c..e9797a6fde37c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/ValidatorTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/ValidatorTest.java @@ -50,7 +50,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.ValidatorTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.ValidatorTest * @run testng/othervm validation.ValidatorTest * @summary Test Validator.validate(Source, Result). */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6943252Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6943252Test.java index 663c7d87fd30e..774466dee3717 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6943252Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6943252Test.java @@ -39,7 +39,7 @@ * @test * @bug 6943252 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6943252Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6943252Test * @run testng/othervm validation.tck.Bug6943252Test * @summary Test Schema doesn't allow to use value more than allowed by base type. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6963124Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6963124Test.java index f2ff60839d9f3..321d33eca6b26 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6963124Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6963124Test.java @@ -37,7 +37,7 @@ * @test * @bug 6963124 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6963124Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6963124Test * @run testng/othervm validation.tck.Bug6963124Test * @summary Test Schema doesn't allow maxOccurs > 1 for reference to all model group. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6963468Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6963468Test.java index e2e12b62067c7..6e687c4300a30 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6963468Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6963468Test.java @@ -49,7 +49,7 @@ * @test * @bug 6963468 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6963468Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6963468Test * @run testng/othervm validation.tck.Bug6963468Test * @summary Test Validation allows element a is a union type and element b specifies a as its substitution group and b type is or is derived from one of the member types of the union. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6964720Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6964720Test.java index 96d68ff487450..a061cabecb4a9 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6964720Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6964720Test.java @@ -37,7 +37,7 @@ * @test * @bug 6964720 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6964720Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6964720Test * @run testng/othervm validation.tck.Bug6964720Test * @summary Test Schema doesn't allow the inexpressible union of two attribute wildcards. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6967214Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6967214Test.java index 9ff29807e6175..863f983354098 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6967214Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6967214Test.java @@ -39,7 +39,7 @@ * @test * @bug 6967214 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6967214Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6967214Test * @run testng/othervm validation.tck.Bug6967214Test * @summary Test Schema doesn't allow unpaired parenthesises in regex. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6970890Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6970890Test.java index 4e885d190e3af..a8f908a752d6e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6970890Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6970890Test.java @@ -37,7 +37,7 @@ * @test * @bug 6970890 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6970890Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6970890Test * @run testng/othervm validation.tck.Bug6970890Test * @summary Test Schema allows [-] in regex. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6971190Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6971190Test.java index b717ff184a305..25f5703305280 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6971190Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6971190Test.java @@ -40,7 +40,7 @@ * @test * @bug 6971190 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6971190Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6971190Test * @run testng/othervm validation.tck.Bug6971190Test * @summary Test Validation accepts UTF lexical presentation. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6974551Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6974551Test.java index 210ca81ff05d6..0c72202bd84f9 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6974551Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6974551Test.java @@ -44,7 +44,7 @@ * @test * @bug 6974551 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6974551Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6974551Test * @run testng/othervm validation.tck.Bug6974551Test * @summary Test Validation for SAXParser can expose whitespace facet for xs:anySimpleType. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6975265Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6975265Test.java index 55f9903e470e6..27ee0b4e3e111 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6975265Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6975265Test.java @@ -39,7 +39,7 @@ * @test * @bug 6975265 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6975265Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6975265Test * @run testng/othervm validation.tck.Bug6975265Test * @summary Test Schema doesn't allow some Element Information Items contain other element information item. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6977201Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6977201Test.java index e41bf4aea927d..435dd3d3b3b9e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6977201Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6977201Test.java @@ -37,7 +37,7 @@ * @test * @bug 6977201 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6977201Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6977201Test * @run testng/othervm validation.tck.Bug6977201Test * @summary Test Validator interprets regex "" correctly. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6989956Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6989956Test.java index 3fe2676fa6227..34cd44649d4fd 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6989956Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug6989956Test.java @@ -49,7 +49,7 @@ * @test * @bug 6989956 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug6989956Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug6989956Test * @run testng/othervm validation.tck.Bug6989956Test * @summary Test Validation can process correctly that maxOccurs in Choice less than maxOccurs in Elements contained in the Choice. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug7014246Test.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug7014246Test.java index 1f398cc71fb7a..319eacb8b540b 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug7014246Test.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/Bug7014246Test.java @@ -37,7 +37,7 @@ * @test * @bug 7014246 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.Bug7014246Test + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.Bug7014246Test * @run testng/othervm validation.tck.Bug7014246Test * @summary Test Schema doesn't allow maxInclusive of derived time type greater than the base. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/ParticleTest.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/ParticleTest.java index 50225cc711743..2c83da1c49b4c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/ParticleTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/ParticleTest.java @@ -37,7 +37,7 @@ * @test * @bug 8142463 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.ParticleTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.ParticleTest * @run testng/othervm validation.tck.ParticleTest * @summary Tests that verify bug fixes for Particles (http://www.w3.org/TR/xmlschema11-1/#cParticles) diff --git a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/RegexWord.java b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/RegexWord.java index 3a127367be667..25ece2a97abbb 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/validation/tck/RegexWord.java +++ b/test/jaxp/javax/xml/jaxp/unittest/validation/tck/RegexWord.java @@ -36,7 +36,7 @@ * @test * @bug 8142900 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true validation.tck.RegexWord + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow validation.tck.RegexWord * @run testng/othervm validation.tck.RegexWord * @summary Verifies that all characters except the set of "punctuation", * "separator" and "other" characters are accepted by \w [#x0000-#x10FFFF]-[\p{P}\p{Z}\p{C}] diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991857.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991857.java index 7422497f0301e..64a21d999cd70 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991857.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991857.java @@ -38,7 +38,7 @@ * @test * @bug 4991857 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.Bug4991857 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.Bug4991857 * @run testng/othervm xpath.Bug4991857 * @summary XPath.evaluate(...) throws XPathExpressionException when context is null and expression refers to the context. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991939.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991939.java index 58f7e1ce33a22..e7aa367eaceb6 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991939.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4991939.java @@ -36,7 +36,7 @@ * @test * @bug 4991939 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.Bug4991939 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.Bug4991939 * @run testng/othervm xpath.Bug4991939 * @summary XPath.evaluate(...) throws IllegalArgumentException if returnType is not one of the types defined in XPathConstants. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992788.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992788.java index dd5ace276335c..a0024230fce37 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992788.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992788.java @@ -39,7 +39,7 @@ * @test * @bug 4992788 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.Bug4992788 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.Bug4992788 * @run testng/othervm xpath.Bug4992788 * @summary Test XPath.evaluate(expression,source,returnType) throws NPE if source is null. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992793.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992793.java index 2aad726f9fdc1..aca7fe3c24885 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992793.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992793.java @@ -41,7 +41,7 @@ * @test * @bug 4992793 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.Bug4992793 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.Bug4992793 * @run testng/othervm xpath.Bug4992793 * @summary Test XPath.evaluate(expression,source,returnType) throws NPE if expression is null. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992805.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992805.java index 454493640171c..a7295986f71bc 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992805.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/Bug4992805.java @@ -40,7 +40,7 @@ * @test * @bug 4992805 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.Bug4992805 + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.Bug4992805 * @run testng/othervm xpath.Bug4992805 * @summary Test XPath.evaluate(expression,source,returnType) throws NPE if returnType is null. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/ClassLoaderTest.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/ClassLoaderTest.java index 15411a0e25dd0..e49fd141e600c 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/ClassLoaderTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/ClassLoaderTest.java @@ -35,7 +35,7 @@ * @test * @bug 6354969 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.ClassLoaderTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.ClassLoaderTest * @run testng/othervm xpath.ClassLoaderTest * @summary Test XPathFactory newInstance() with ContextClassLoader. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/SecureProcessingTest.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/SecureProcessingTest.java index d0e100d6f0db8..d9a8878093ee5 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/SecureProcessingTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/SecureProcessingTest.java @@ -51,7 +51,7 @@ /* * @test * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.SecureProcessingTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.SecureProcessingTest * @run testng/othervm xpath.SecureProcessingTest * @summary Test when FEATURE_SECURE_PROCESSING is true, calling an external function will cause XPathFunctionException. */ diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathAnyTypeTest.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathAnyTypeTest.java index efe1fa2a61b50..47b350f35327e 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathAnyTypeTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathAnyTypeTest.java @@ -41,7 +41,7 @@ * @test * @bug 8054196 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.XPathAnyTypeTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.XPathAnyTypeTest * @run testng/othervm xpath.XPathAnyTypeTest * @summary Test for the project XPath: support any type. This test covers the new * evaluateExpression methods of XPath, as well as XPathNodes and XPathEvaluationResult. diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathExpAnyTypeTest.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathExpAnyTypeTest.java index 1717f5d74d54c..4502083efa628 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathExpAnyTypeTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathExpAnyTypeTest.java @@ -43,7 +43,7 @@ * @test * @bug 8054196 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.XPathExpAnyTypeTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.XPathExpAnyTypeTest * @run testng/othervm xpath.XPathExpAnyTypeTest * @summary Test for the project XPath: support any type. This test covers the new * evaluateExpression methods of XPathExpression. diff --git a/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathTest.java b/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathTest.java index ea961181569a6..7f5c45dc12b96 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathTest.java +++ b/test/jaxp/javax/xml/jaxp/unittest/xpath/XPathTest.java @@ -40,7 +40,7 @@ * @test * @bug 6376058 * @library /javax/xml/jaxp/libs /javax/xml/jaxp/unittest - * @run testng/othervm -DrunSecMngr=true xpath.XPathTest + * @run testng/othervm -DrunSecMngr=true -Djava.security.manager=allow xpath.XPathTest * @run testng/othervm xpath.XPathTest * @summary Test XPath functions. See details for each test. */ diff --git a/test/jdk/javax/xml/jaxp/transform/8004476/XPathExFuncTest.java b/test/jdk/javax/xml/jaxp/transform/8004476/XPathExFuncTest.java index 5680067037a06..bf254f6d33a18 100644 --- a/test/jdk/javax/xml/jaxp/transform/8004476/XPathExFuncTest.java +++ b/test/jdk/javax/xml/jaxp/transform/8004476/XPathExFuncTest.java @@ -24,7 +24,7 @@ * @test * @bug 8004476 * @summary test XPath extension functions - * @run main/othervm XPathExFuncTest + * @run main/othervm -Djava.security.manager=allow XPathExFuncTest */ import java.io.FileInputStream; import java.io.InputStream; diff --git a/test/jdk/javax/xml/jaxp/transform/8004476/XSLTExFuncTest.java b/test/jdk/javax/xml/jaxp/transform/8004476/XSLTExFuncTest.java index b86bcff490092..9a72cbe1a55de 100644 --- a/test/jdk/javax/xml/jaxp/transform/8004476/XSLTExFuncTest.java +++ b/test/jdk/javax/xml/jaxp/transform/8004476/XSLTExFuncTest.java @@ -24,7 +24,7 @@ * @test * @bug 8004476 * @summary test XSLT extension functions - * @run main/othervm XSLTExFuncTest + * @run main/othervm -Djava.security.manager=allow XSLTExFuncTest */ import java.io.StringWriter; From 0e544c3b56d780392dc7fbd26099deb85d8a3d08 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:46 -0400 Subject: [PATCH 12/19] test for beans --- test/jdk/java/beans/Beans/Test4080522.java | 2 +- test/jdk/java/beans/EventHandler/Test6277246.java | 2 +- test/jdk/java/beans/EventHandler/Test6277266.java | 2 +- test/jdk/java/beans/Introspector/7084904/Test7084904.java | 3 ++- test/jdk/java/beans/Introspector/Test4683761.java | 1 + test/jdk/java/beans/Introspector/Test6277246.java | 2 +- test/jdk/java/beans/PropertyEditor/TestBooleanClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestBooleanType.java | 1 + test/jdk/java/beans/PropertyEditor/TestByteClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestByteType.java | 1 + test/jdk/java/beans/PropertyEditor/TestColorClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestDoubleClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestDoubleType.java | 1 + test/jdk/java/beans/PropertyEditor/TestEnumClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestEnumSubclass.java | 1 + test/jdk/java/beans/PropertyEditor/TestFloatClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestFloatType.java | 1 + test/jdk/java/beans/PropertyEditor/TestFontClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestIntegerClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestIntegerType.java | 1 + test/jdk/java/beans/PropertyEditor/TestLongClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestLongType.java | 1 + test/jdk/java/beans/PropertyEditor/TestShortClass.java | 1 + test/jdk/java/beans/PropertyEditor/TestShortType.java | 1 + test/jdk/java/beans/PropertyEditor/TestStringClass.java | 1 + test/jdk/java/beans/Statement/Test6224433.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestArray.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestBoolean.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestByte.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestChar.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestClass.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestDouble.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestFalse.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestField.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestFloat.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestInt.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestJava.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestLong.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestMethod.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestNew.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestNull.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestObject.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestProperty.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestShort.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestString.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestTrue.java | 1 + test/jdk/java/beans/XMLDecoder/spec/TestVar.java | 1 + .../jdk/java/beans/XMLEncoder/4741757/TestSecurityManager.java | 1 + test/jdk/java/beans/XMLEncoder/6777487/TestBox.java | 1 + .../java/beans/XMLEncoder/6777487/TestCheckedCollection.java | 1 + test/jdk/java/beans/XMLEncoder/6777487/TestCheckedList.java | 1 + test/jdk/java/beans/XMLEncoder/6777487/TestCheckedMap.java | 1 + .../beans/XMLEncoder/6777487/TestCheckedRandomAccessList.java | 1 + test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSet.java | 1 + .../java/beans/XMLEncoder/6777487/TestCheckedSortedMap.java | 1 + .../java/beans/XMLEncoder/6777487/TestCheckedSortedSet.java | 1 + test/jdk/java/beans/XMLEncoder/6777487/TestEnumMap.java | 1 + test/jdk/java/beans/XMLEncoder/6777487/TestEnumSet.java | 1 + test/jdk/java/beans/XMLEncoder/ReferenceToNonStaticField.java | 1 + test/jdk/java/beans/XMLEncoder/Test4631471.java | 1 + test/jdk/java/beans/XMLEncoder/Test4652928.java | 1 + test/jdk/java/beans/XMLEncoder/Test4679556.java | 1 + test/jdk/java/beans/XMLEncoder/Test4903007.java | 1 + test/jdk/java/beans/XMLEncoder/Test4935607.java | 1 + test/jdk/java/beans/XMLEncoder/Test4936682.java | 1 + test/jdk/java/beans/XMLEncoder/Test4993777.java | 1 + test/jdk/java/beans/XMLEncoder/Test4994637.java | 1 + test/jdk/java/beans/XMLEncoder/Test5023550.java | 1 + test/jdk/java/beans/XMLEncoder/Test5023552.java | 1 + test/jdk/java/beans/XMLEncoder/Test5023557.java | 1 + test/jdk/java/beans/XMLEncoder/Test5023559.java | 1 + test/jdk/java/beans/XMLEncoder/Test6176120.java | 1 + test/jdk/java/beans/XMLEncoder/Test6187118.java | 1 + test/jdk/java/beans/XMLEncoder/Test6256805.java | 1 + test/jdk/java/beans/XMLEncoder/Test6437265.java | 1 + test/jdk/java/beans/XMLEncoder/Test6501431.java | 1 + test/jdk/java/beans/XMLEncoder/Test6505888.java | 1 + test/jdk/java/beans/XMLEncoder/Test6531597.java | 1 + test/jdk/java/beans/XMLEncoder/Test6570354.java | 1 + test/jdk/java/beans/XMLEncoder/Test6852574.java | 1 + test/jdk/java/beans/XMLEncoder/Test6921644.java | 1 + test/jdk/java/beans/XMLEncoder/Test6989223.java | 1 + test/jdk/java/beans/XMLEncoder/Test7080156.java | 1 + test/jdk/java/beans/XMLEncoder/Test7092744.java | 1 + test/jdk/java/beans/XMLEncoder/Test7169395.java | 1 + test/jdk/java/beans/XMLEncoder/Test8013416.java | 1 + test/jdk/java/beans/XMLEncoder/Test8013557.java | 1 + test/jdk/java/beans/XMLEncoder/Test8016545.java | 1 + test/jdk/java/beans/XMLEncoder/Test8027066.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_AWTKeyStroke.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_BasicStroke.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_BorderLayout.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_CardLayout.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_Color.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_Component.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_Cursor.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_Dimension.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_Font.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_GradientPaint.java | 1 + .../jdk/java/beans/XMLEncoder/java_awt_GridBagConstraints.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_GridBagLayout.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_Insets.java | 1 + .../java/beans/XMLEncoder/java_awt_LinearGradientPaint.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_MenuShortcut.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_Point.java | 1 + .../java/beans/XMLEncoder/java_awt_RadialGradientPaint.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_Rectangle.java | 1 + test/jdk/java/beans/XMLEncoder/java_awt_ScrollPane.java | 1 + .../java/beans/XMLEncoder/java_awt_geom_AffineTransform.java | 1 + test/jdk/java/beans/XMLEncoder/java_beans_EventHandler.java | 1 + test/jdk/java/beans/XMLEncoder/java_beans_Expression.java | 1 + test/jdk/java/beans/XMLEncoder/java_beans_Statement.java | 1 + test/jdk/java/beans/XMLEncoder/java_lang_Character.java | 1 + test/jdk/java/beans/XMLEncoder/java_lang_Class.java | 1 + test/jdk/java/beans/XMLEncoder/java_lang_Enum.java | 1 + test/jdk/java/beans/XMLEncoder/java_lang_String.java | 1 + test/jdk/java/beans/XMLEncoder/java_lang_reflect_Field.java | 1 + test/jdk/java/beans/XMLEncoder/java_lang_reflect_Method.java | 1 + test/jdk/java/beans/XMLEncoder/java_net_URI.java | 1 + test/jdk/java/beans/XMLEncoder/java_sql_Date.java | 1 + test/jdk/java/beans/XMLEncoder/java_sql_Time.java | 1 + test/jdk/java/beans/XMLEncoder/java_sql_Timestamp.java | 1 + test/jdk/java/beans/XMLEncoder/java_util_ArrayList.java | 1 + .../java/beans/XMLEncoder/java_util_Collections_EmptyList.java | 1 + .../java/beans/XMLEncoder/java_util_Collections_EmptyMap.java | 1 + .../java/beans/XMLEncoder/java_util_Collections_EmptySet.java | 1 + .../beans/XMLEncoder/java_util_Collections_SingletonList.java | 1 + .../beans/XMLEncoder/java_util_Collections_SingletonMap.java | 1 + .../beans/XMLEncoder/java_util_Collections_SingletonSet.java | 1 + .../java_util_Collections_SynchronizedCollection.java | 1 + .../XMLEncoder/java_util_Collections_SynchronizedList.java | 1 + .../XMLEncoder/java_util_Collections_SynchronizedMap.java | 1 + .../java_util_Collections_SynchronizedRandomAccessList.java | 1 + .../XMLEncoder/java_util_Collections_SynchronizedSet.java | 1 + .../java_util_Collections_SynchronizedSortedMap.java | 1 + .../java_util_Collections_SynchronizedSortedSet.java | 1 + .../java_util_Collections_UnmodifiableCollection.java | 1 + .../XMLEncoder/java_util_Collections_UnmodifiableList.java | 1 + .../XMLEncoder/java_util_Collections_UnmodifiableMap.java | 1 + .../java_util_Collections_UnmodifiableRandomAccessList.java | 1 + .../XMLEncoder/java_util_Collections_UnmodifiableSet.java | 1 + .../java_util_Collections_UnmodifiableSortedMap.java | 1 + .../java_util_Collections_UnmodifiableSortedSet.java | 1 + test/jdk/java/beans/XMLEncoder/java_util_Date.java | 1 + test/jdk/java/beans/XMLEncoder/java_util_HashMap.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_Box.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_BoxLayout.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_Box_Filler.java | 1 + .../java/beans/XMLEncoder/javax_swing_DefaultCellEditor.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_JButton.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_JComponent.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_JLayeredPane.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_JSplitPane.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_JTree.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_KeyStroke.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_OverlayLayout.java | 1 + .../java/beans/XMLEncoder/javax_swing_border_BevelBorder.java | 1 + .../beans/XMLEncoder/javax_swing_border_CompoundBorder.java | 1 + .../java/beans/XMLEncoder/javax_swing_border_EmptyBorder.java | 1 + .../java/beans/XMLEncoder/javax_swing_border_EtchedBorder.java | 1 + .../java/beans/XMLEncoder/javax_swing_border_LineBorder.java | 1 + .../java/beans/XMLEncoder/javax_swing_border_MatteBorder.java | 1 + .../beans/XMLEncoder/javax_swing_border_SoftBevelBorder.java | 1 + .../java/beans/XMLEncoder/javax_swing_border_StrokeBorder.java | 1 + .../java/beans/XMLEncoder/javax_swing_border_TitledBorder.java | 1 + ...avax_swing_plaf_BorderUIResource_BevelBorderUIResource.java | 1 + ...x_swing_plaf_BorderUIResource_CompoundBorderUIResource.java | 1 + ...avax_swing_plaf_BorderUIResource_EmptyBorderUIResource.java | 1 + ...vax_swing_plaf_BorderUIResource_EtchedBorderUIResource.java | 1 + ...javax_swing_plaf_BorderUIResource_LineBorderUIResource.java | 1 + ...avax_swing_plaf_BorderUIResource_MatteBorderUIResource.java | 1 + ...vax_swing_plaf_BorderUIResource_TitledBorderUIResource.java | 1 + .../beans/XMLEncoder/javax_swing_plaf_ColorUIResource.java | 1 + .../java/beans/XMLEncoder/javax_swing_plaf_FontUIResource.java | 1 + .../beans/XMLEncoder/javax_swing_tree_DefaultTreeModel.java | 1 + test/jdk/java/beans/XMLEncoder/javax_swing_tree_TreePath.java | 1 + .../java/beans/XMLEncoder/sun_swing_PrintColorUIResource.java | 1 + 177 files changed, 178 insertions(+), 5 deletions(-) diff --git a/test/jdk/java/beans/Beans/Test4080522.java b/test/jdk/java/beans/Beans/Test4080522.java index 03e4e31300aa0..1c2d5bb9815b2 100644 --- a/test/jdk/java/beans/Beans/Test4080522.java +++ b/test/jdk/java/beans/Beans/Test4080522.java @@ -29,7 +29,7 @@ * Beans.setGuiAvailable * Introspector.setBeanInfoSearchPath * PropertyEditorManager.setEditorSearchPath - * @run main/othervm Test4080522 + * @run main/othervm -Djava.security.manager=allow Test4080522 * @author Graham Hamilton */ diff --git a/test/jdk/java/beans/EventHandler/Test6277246.java b/test/jdk/java/beans/EventHandler/Test6277246.java index 2f8015690d284..158b250bcaae0 100644 --- a/test/jdk/java/beans/EventHandler/Test6277246.java +++ b/test/jdk/java/beans/EventHandler/Test6277246.java @@ -25,7 +25,7 @@ * @test * @bug 6277246 * @summary Tests problem with java.beans use of reflection - * @run main/othervm Test6277246 + * @run main/othervm -Djava.security.manager=allow Test6277246 * @author Jeff Nisewanger */ diff --git a/test/jdk/java/beans/EventHandler/Test6277266.java b/test/jdk/java/beans/EventHandler/Test6277266.java index c336fd016a70b..0bed290ae4a96 100644 --- a/test/jdk/java/beans/EventHandler/Test6277266.java +++ b/test/jdk/java/beans/EventHandler/Test6277266.java @@ -25,7 +25,7 @@ * @test * @bug 6277266 * @summary Tests access control issue in EventHandler - * @run main/othervm Test6277266 + * @run main/othervm -Djava.security.manager=allow Test6277266 * @author Jeff Nisewanger */ diff --git a/test/jdk/java/beans/Introspector/7084904/Test7084904.java b/test/jdk/java/beans/Introspector/7084904/Test7084904.java index eb2e68e7930e5..3ca6970d0a2f0 100644 --- a/test/jdk/java/beans/Introspector/7084904/Test7084904.java +++ b/test/jdk/java/beans/Introspector/7084904/Test7084904.java @@ -26,8 +26,9 @@ * @test * @bug 7084904 * @summary Compares reflection and bean introspection - * @author Sergey Malenkov * @library .. + * @run main/othervm -Djava.security.manager=allow Test7084904 + * @author Sergey Malenkov */ public class Test7084904 { public static void main(String[] args) throws Exception { diff --git a/test/jdk/java/beans/Introspector/Test4683761.java b/test/jdk/java/beans/Introspector/Test4683761.java index 2edd14580d6c3..08654c07f8b1a 100644 --- a/test/jdk/java/beans/Introspector/Test4683761.java +++ b/test/jdk/java/beans/Introspector/Test4683761.java @@ -25,6 +25,7 @@ * @test * @bug 4683761 * @summary Tests that all public methods in a public class + * @run main/othervm -Djava.security.manager=allow Test4683761 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/Introspector/Test6277246.java b/test/jdk/java/beans/Introspector/Test6277246.java index d0251fd82accc..6adecc0e79269 100644 --- a/test/jdk/java/beans/Introspector/Test6277246.java +++ b/test/jdk/java/beans/Introspector/Test6277246.java @@ -27,7 +27,7 @@ * @summary Tests problem with java.beans use of reflection * @modules java.base/sun.security.x509 * java.desktop - * @run main/othervm Test6277246 + * @run main/othervm -Djava.security.manager=allow Test6277246 * @author Jeff Nisewanger */ diff --git a/test/jdk/java/beans/PropertyEditor/TestBooleanClass.java b/test/jdk/java/beans/PropertyEditor/TestBooleanClass.java index c274564484cc3..64d76e4555edc 100644 --- a/test/jdk/java/beans/PropertyEditor/TestBooleanClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestBooleanClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 6498158 * @summary Tests PropertyEditor for value of type Boolean with security manager + * @run main/othervm -Djava.security.manager=allow TestBooleanClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestBooleanType.java b/test/jdk/java/beans/PropertyEditor/TestBooleanType.java index 71553a324213e..cd8ac27015f6f 100644 --- a/test/jdk/java/beans/PropertyEditor/TestBooleanType.java +++ b/test/jdk/java/beans/PropertyEditor/TestBooleanType.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type boolean with security manager + * @run main/othervm -Djava.security.manager=allow TestBooleanType * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestByteClass.java b/test/jdk/java/beans/PropertyEditor/TestByteClass.java index 393dabad7226e..73998caa642de 100644 --- a/test/jdk/java/beans/PropertyEditor/TestByteClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestByteClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type Byte with security manager + * @run main/othervm -Djava.security.manager=allow TestByteClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestByteType.java b/test/jdk/java/beans/PropertyEditor/TestByteType.java index 5d8a01d816907..cfb33ce819aff 100644 --- a/test/jdk/java/beans/PropertyEditor/TestByteType.java +++ b/test/jdk/java/beans/PropertyEditor/TestByteType.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type byte with security manager + * @run main/othervm -Djava.security.manager=allow TestByteType * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestColorClass.java b/test/jdk/java/beans/PropertyEditor/TestColorClass.java index e449baf1064ef..94452e643395d 100644 --- a/test/jdk/java/beans/PropertyEditor/TestColorClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestColorClass.java @@ -30,6 +30,7 @@ * @modules java.compiler * java.desktop * jdk.compiler + * @run main/othervm -Djava.security.manager=allow TestColorClass */ import java.awt.Color; diff --git a/test/jdk/java/beans/PropertyEditor/TestDoubleClass.java b/test/jdk/java/beans/PropertyEditor/TestDoubleClass.java index b1ffde0a9eb38..7018bfda44fc7 100644 --- a/test/jdk/java/beans/PropertyEditor/TestDoubleClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestDoubleClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type Double with security manager + * @run main/othervm -Djava.security.manager=allow TestDoubleClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestDoubleType.java b/test/jdk/java/beans/PropertyEditor/TestDoubleType.java index 7dc21b95d8646..699a5a455ed89 100644 --- a/test/jdk/java/beans/PropertyEditor/TestDoubleType.java +++ b/test/jdk/java/beans/PropertyEditor/TestDoubleType.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type double with security manager + * @run main/othervm -Djava.security.manager=allow TestDoubleType * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestEnumClass.java b/test/jdk/java/beans/PropertyEditor/TestEnumClass.java index 8aec51b029945..419d8be2a9a6d 100644 --- a/test/jdk/java/beans/PropertyEditor/TestEnumClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestEnumClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6219769 6258510 * @summary Tests PropertyEditor for value of type Enum with security manager + * @run main/othervm -Djava.security.manager=allow TestEnumClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestEnumSubclass.java b/test/jdk/java/beans/PropertyEditor/TestEnumSubclass.java index 8ff3d2e55d706..811f3d2fc1408 100644 --- a/test/jdk/java/beans/PropertyEditor/TestEnumSubclass.java +++ b/test/jdk/java/beans/PropertyEditor/TestEnumSubclass.java @@ -25,6 +25,7 @@ * @test * @bug 6736248 * @summary Tests PropertyEditor for value of subtype Enum with security manager + * @run main/othervm -Djava.security.manager=allow TestEnumSubclass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestFloatClass.java b/test/jdk/java/beans/PropertyEditor/TestFloatClass.java index cd231d33e6870..65bfb7c511ca3 100644 --- a/test/jdk/java/beans/PropertyEditor/TestFloatClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestFloatClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type Float with security manager + * @run main/othervm -Djava.security.manager=allow TestFloatClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestFloatType.java b/test/jdk/java/beans/PropertyEditor/TestFloatType.java index 84d00f99e7c4b..e2aa79fff373f 100644 --- a/test/jdk/java/beans/PropertyEditor/TestFloatType.java +++ b/test/jdk/java/beans/PropertyEditor/TestFloatType.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type float with security manager + * @run main/othervm -Djava.security.manager=allow TestFloatType * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestFontClass.java b/test/jdk/java/beans/PropertyEditor/TestFontClass.java index 742a6d65d9b07..c262779154101 100644 --- a/test/jdk/java/beans/PropertyEditor/TestFontClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestFontClass.java @@ -30,6 +30,7 @@ * @modules java.compiler * java.desktop * jdk.compiler + * @run main/othervm -Djava.security.manager=allow TestFontClass */ import java.awt.Font; diff --git a/test/jdk/java/beans/PropertyEditor/TestIntegerClass.java b/test/jdk/java/beans/PropertyEditor/TestIntegerClass.java index 1065704248914..2243c4ddd5286 100644 --- a/test/jdk/java/beans/PropertyEditor/TestIntegerClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestIntegerClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 6498158 * @summary Tests PropertyEditor for value of type Integer with security manager + * @run main/othervm -Djava.security.manager=allow TestIntegerClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestIntegerType.java b/test/jdk/java/beans/PropertyEditor/TestIntegerType.java index 34a2261ea692d..5264ee1932d7c 100644 --- a/test/jdk/java/beans/PropertyEditor/TestIntegerType.java +++ b/test/jdk/java/beans/PropertyEditor/TestIntegerType.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type int with security manager + * @run main/othervm -Djava.security.manager=allow TestIntegerType * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestLongClass.java b/test/jdk/java/beans/PropertyEditor/TestLongClass.java index 5d06f0c0515ae..79667c15deb05 100644 --- a/test/jdk/java/beans/PropertyEditor/TestLongClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestLongClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type Long with security manager + * @run main/othervm -Djava.security.manager=allow TestLongClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestLongType.java b/test/jdk/java/beans/PropertyEditor/TestLongType.java index a32cd1506cabb..2c65038546971 100644 --- a/test/jdk/java/beans/PropertyEditor/TestLongType.java +++ b/test/jdk/java/beans/PropertyEditor/TestLongType.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type long with security manager + * @run main/othervm -Djava.security.manager=allow TestLongType * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestShortClass.java b/test/jdk/java/beans/PropertyEditor/TestShortClass.java index 875c3a0bf780f..40dedb00146c3 100644 --- a/test/jdk/java/beans/PropertyEditor/TestShortClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestShortClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type Short with security manager + * @run main/othervm -Djava.security.manager=allow TestShortClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestShortType.java b/test/jdk/java/beans/PropertyEditor/TestShortType.java index 25a24a8fbb984..43f613e3d3776 100644 --- a/test/jdk/java/beans/PropertyEditor/TestShortType.java +++ b/test/jdk/java/beans/PropertyEditor/TestShortType.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 * @summary Tests PropertyEditor for value of type short with security manager + * @run main/othervm -Djava.security.manager=allow TestShortType * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/PropertyEditor/TestStringClass.java b/test/jdk/java/beans/PropertyEditor/TestStringClass.java index 2a2a6d718b41d..c27169dfa3276 100644 --- a/test/jdk/java/beans/PropertyEditor/TestStringClass.java +++ b/test/jdk/java/beans/PropertyEditor/TestStringClass.java @@ -25,6 +25,7 @@ * @test * @bug 4506596 6258510 6457659 * @summary Tests PropertyEditor for value of type String with security manager + * @run main/othervm -Djava.security.manager=allow TestStringClass * @author Sergey Malenkov * @modules java.compiler * java.desktop diff --git a/test/jdk/java/beans/Statement/Test6224433.java b/test/jdk/java/beans/Statement/Test6224433.java index 9d81402538b7f..c5aededcb7df8 100644 --- a/test/jdk/java/beans/Statement/Test6224433.java +++ b/test/jdk/java/beans/Statement/Test6224433.java @@ -25,6 +25,7 @@ * @test * @bug 6224433 * @summary Tests class loader lookup problem in Statement + * @run main/othervm -Djava.security.manager=allow Test6224433 * @author Jeff Nisewanger */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestArray.java b/test/jdk/java/beans/XMLDecoder/spec/TestArray.java index dbd92b91a29fc..5681a0411c109 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestArray.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestArray.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestArray * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestBoolean.java b/test/jdk/java/beans/XMLDecoder/spec/TestBoolean.java index e04c0c9042d0c..7f886353ca257 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestBoolean.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestBoolean.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestBoolean * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestByte.java b/test/jdk/java/beans/XMLDecoder/spec/TestByte.java index f04fc43916f95..c8b12c654bfc2 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestByte.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestByte.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestByte * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestChar.java b/test/jdk/java/beans/XMLDecoder/spec/TestChar.java index 129ea0c4fa94c..b7bc4bf93b161 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestChar.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestChar.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestChar * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestClass.java b/test/jdk/java/beans/XMLDecoder/spec/TestClass.java index c4fb4367dfdd1..36f33531cf993 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestClass.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestClass.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestClass * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestDouble.java b/test/jdk/java/beans/XMLDecoder/spec/TestDouble.java index 24d29fd531631..07660b29f8cb1 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestDouble.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestDouble.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestDouble * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestFalse.java b/test/jdk/java/beans/XMLDecoder/spec/TestFalse.java index 07d73b0fa3e14..6e4dd7f650680 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestFalse.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestFalse.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestFalse * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestField.java b/test/jdk/java/beans/XMLDecoder/spec/TestField.java index 091ee5d272d70..3645113448050 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestField.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestField.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestField * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestFloat.java b/test/jdk/java/beans/XMLDecoder/spec/TestFloat.java index e846cce2a4a5f..2cd8ca826ce9c 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestFloat.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestFloat.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestFloat * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestInt.java b/test/jdk/java/beans/XMLDecoder/spec/TestInt.java index 4a7bb93287a9e..9df3de817009f 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestInt.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestInt.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestInt * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestJava.java b/test/jdk/java/beans/XMLDecoder/spec/TestJava.java index 1f7ffbab8ad05..d01b3ee530d92 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestJava.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestJava.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestJava * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestLong.java b/test/jdk/java/beans/XMLDecoder/spec/TestLong.java index 1168871051e73..e8a87b9ef30db 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestLong.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestLong.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestLong * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestMethod.java b/test/jdk/java/beans/XMLDecoder/spec/TestMethod.java index d13778eff4e30..025aa45e8d405 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestMethod.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestMethod.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestMethod * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestNew.java b/test/jdk/java/beans/XMLDecoder/spec/TestNew.java index af008c47d8764..7a503cf4a287b 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestNew.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestNew.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestNew * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestNull.java b/test/jdk/java/beans/XMLDecoder/spec/TestNull.java index 05ead31690325..1adf5d18a881c 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestNull.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestNull.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestNull * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestObject.java b/test/jdk/java/beans/XMLDecoder/spec/TestObject.java index a22171ab61c07..c25ad7d27b4f8 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestObject.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestObject.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestObject * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestProperty.java b/test/jdk/java/beans/XMLDecoder/spec/TestProperty.java index 914e2055bcf06..f1c75ccaed358 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestProperty.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestProperty.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestProperty * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestShort.java b/test/jdk/java/beans/XMLDecoder/spec/TestShort.java index 9fa75a52b09a5..9c0212bfbc875 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestShort.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestShort.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestShort * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestString.java b/test/jdk/java/beans/XMLDecoder/spec/TestString.java index 9947a4a5e68bb..e082be5523ea3 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestString.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestString.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestString * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestTrue.java b/test/jdk/java/beans/XMLDecoder/spec/TestTrue.java index 5353e2b2a6b00..805abc0bf4047 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestTrue.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestTrue.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestTrue * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLDecoder/spec/TestVar.java b/test/jdk/java/beans/XMLDecoder/spec/TestVar.java index b9f61b5d79096..e3f07dc721d13 100644 --- a/test/jdk/java/beans/XMLDecoder/spec/TestVar.java +++ b/test/jdk/java/beans/XMLDecoder/spec/TestVar.java @@ -24,6 +24,7 @@ /* * @test * @summary Tests element + * @run main/othervm -Djava.security.manager=allow TestVar * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/4741757/TestSecurityManager.java b/test/jdk/java/beans/XMLEncoder/4741757/TestSecurityManager.java index ed287b7c5d20f..d6df6a28e0561 100644 --- a/test/jdk/java/beans/XMLEncoder/4741757/TestSecurityManager.java +++ b/test/jdk/java/beans/XMLEncoder/4741757/TestSecurityManager.java @@ -25,6 +25,7 @@ * @test * @bug 4741757 * @summary Tests encoding with security manager + * @run main/othervm -Djava.security.manager=allow TestSecurityManager * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestBox.java b/test/jdk/java/beans/XMLEncoder/6777487/TestBox.java index a69ec8932b7be..a45082b691266 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestBox.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestBox.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for BoxLayout + * @run main/othervm -Djava.security.manager=allow TestBox * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedCollection.java b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedCollection.java index 774113606e84a..6acbc6489c340 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedCollection.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedCollection.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for CheckedCollection + * @run main/othervm -Djava.security.manager=allow TestCheckedCollection * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedList.java b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedList.java index 6b44dd66357f4..e522895d5f44e 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedList.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedList.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for CheckedList + * @run main/othervm -Djava.security.manager=allow TestCheckedList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedMap.java b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedMap.java index c36e70c172055..4fd5d87eb67b6 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedMap.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedMap.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for CheckedMap + * @run main/othervm -Djava.security.manager=allow TestCheckedMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedRandomAccessList.java b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedRandomAccessList.java index dc59b1394f2d0..0d34eab2e0ec6 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedRandomAccessList.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedRandomAccessList.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for CheckedRandomAccessList + * @run main/othervm -Djava.security.manager=allow TestCheckedRandomAccessList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSet.java b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSet.java index 911983be6b3be..025cb63ca97c3 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSet.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSet.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for CheckedSet + * @run main/othervm -Djava.security.manager=allow TestCheckedSet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSortedMap.java b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSortedMap.java index 4b59a4aa49ffc..819e46141f79b 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSortedMap.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSortedMap.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for CheckedSortedMap + * @run main/othervm -Djava.security.manager=allow TestCheckedSortedMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSortedSet.java b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSortedSet.java index 8f4e709701dd1..957107fc5d2c1 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSortedSet.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestCheckedSortedSet.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for CheckedSortedSet + * @run main/othervm -Djava.security.manager=allow TestCheckedSortedSet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestEnumMap.java b/test/jdk/java/beans/XMLEncoder/6777487/TestEnumMap.java index f8ec7d72c1536..b11a6ee99c583 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestEnumMap.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestEnumMap.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for EnumMap + * @run main/othervm -Djava.security.manager=allow TestEnumMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/6777487/TestEnumSet.java b/test/jdk/java/beans/XMLEncoder/6777487/TestEnumSet.java index 13799ac555885..6e3e3bf50a3b9 100644 --- a/test/jdk/java/beans/XMLEncoder/6777487/TestEnumSet.java +++ b/test/jdk/java/beans/XMLEncoder/6777487/TestEnumSet.java @@ -25,6 +25,7 @@ * @test * @bug 6777487 * @summary Tests private field access for EnumSet + * @run main/othervm -Djava.security.manager=allow TestEnumSet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/ReferenceToNonStaticField.java b/test/jdk/java/beans/XMLEncoder/ReferenceToNonStaticField.java index d9a748689f6f0..fd8b36e49e753 100644 --- a/test/jdk/java/beans/XMLEncoder/ReferenceToNonStaticField.java +++ b/test/jdk/java/beans/XMLEncoder/ReferenceToNonStaticField.java @@ -26,6 +26,7 @@ /** * @test * @bug 8060027 + * @run main/othervm -Djava.security.manager=allow ReferenceToNonStaticField */ public final class ReferenceToNonStaticField extends AbstractTest { diff --git a/test/jdk/java/beans/XMLEncoder/Test4631471.java b/test/jdk/java/beans/XMLEncoder/Test4631471.java index 1369b4565bec2..ba39390d5a878 100644 --- a/test/jdk/java/beans/XMLEncoder/Test4631471.java +++ b/test/jdk/java/beans/XMLEncoder/Test4631471.java @@ -25,6 +25,7 @@ * @test * @bug 4631471 6972468 * @summary Tests DefaultTreeModel encoding + * @run main/othervm -Djava.security.manager=allow Test4631471 * @author Sergey Malenkov, Mark Davidson */ diff --git a/test/jdk/java/beans/XMLEncoder/Test4652928.java b/test/jdk/java/beans/XMLEncoder/Test4652928.java index dffc3d5916af6..940decfb15620 100644 --- a/test/jdk/java/beans/XMLEncoder/Test4652928.java +++ b/test/jdk/java/beans/XMLEncoder/Test4652928.java @@ -25,6 +25,7 @@ * @test * @bug 4652928 * @summary Tests encoding of collections + * @run main/othervm -Djava.security.manager=allow Test4652928 * @author Sergey Malenkov, Mark Davidson */ diff --git a/test/jdk/java/beans/XMLEncoder/Test4679556.java b/test/jdk/java/beans/XMLEncoder/Test4679556.java index ec8472d9cd3a9..ebeb45534a5a0 100644 --- a/test/jdk/java/beans/XMLEncoder/Test4679556.java +++ b/test/jdk/java/beans/XMLEncoder/Test4679556.java @@ -25,6 +25,7 @@ * @test * @bug 4679556 * @summary Tests for duplication of some kind instances + * @run main/othervm -Djava.security.manager=allow Test4679556 * @author Sergey Malenkov, Mark Davidson, Philip Milne */ diff --git a/test/jdk/java/beans/XMLEncoder/Test4903007.java b/test/jdk/java/beans/XMLEncoder/Test4903007.java index 02ba9a6a93941..8fcc9c1c4e1aa 100644 --- a/test/jdk/java/beans/XMLEncoder/Test4903007.java +++ b/test/jdk/java/beans/XMLEncoder/Test4903007.java @@ -25,6 +25,7 @@ * @test * @bug 4903007 6972468 * @summary Tests encoding of container with boxes and BoxLayout + * @run main/othervm -Djava.security.manager=allow Test4903007 * @author Sergey Malenkov, Mark Davidson */ diff --git a/test/jdk/java/beans/XMLEncoder/Test4935607.java b/test/jdk/java/beans/XMLEncoder/Test4935607.java index 2282305ca6ec5..6bcf30068536a 100644 --- a/test/jdk/java/beans/XMLEncoder/Test4935607.java +++ b/test/jdk/java/beans/XMLEncoder/Test4935607.java @@ -25,6 +25,7 @@ * @test %I% %G% * @bug 4935607 * @summary Tests transient properties + * @run main/othervm -Djava.security.manager=allow Test4935607 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test4936682.java b/test/jdk/java/beans/XMLEncoder/Test4936682.java index 378e6b8f9b5cb..fc2952bbff728 100644 --- a/test/jdk/java/beans/XMLEncoder/Test4936682.java +++ b/test/jdk/java/beans/XMLEncoder/Test4936682.java @@ -25,6 +25,7 @@ * @test * @bug 4936682 * @summary Tests encoding of reference to target + * @run main/othervm -Djava.security.manager=allow Test4936682 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test4993777.java b/test/jdk/java/beans/XMLEncoder/Test4993777.java index b80b1321c11d8..3208cbd58b0dc 100644 --- a/test/jdk/java/beans/XMLEncoder/Test4993777.java +++ b/test/jdk/java/beans/XMLEncoder/Test4993777.java @@ -25,6 +25,7 @@ * @test * @bug 4993777 * @summary Tests encoding of multi-dimensional arrays + * @run main/othervm -Djava.security.manager=allow Test4993777 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test4994637.java b/test/jdk/java/beans/XMLEncoder/Test4994637.java index bfc4d8ccff1d8..866a816f28da5 100644 --- a/test/jdk/java/beans/XMLEncoder/Test4994637.java +++ b/test/jdk/java/beans/XMLEncoder/Test4994637.java @@ -25,6 +25,7 @@ * @test * @bug 4994637 * @summary Tests custom map encoding + * @run main/othervm -Djava.security.manager=allow Test4994637 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test5023550.java b/test/jdk/java/beans/XMLEncoder/Test5023550.java index a350f0b2f67d9..fc3e7da709cf9 100644 --- a/test/jdk/java/beans/XMLEncoder/Test5023550.java +++ b/test/jdk/java/beans/XMLEncoder/Test5023550.java @@ -25,6 +25,7 @@ * @test * @bug 5023550 * @summary Tests complex references to owner + * @run main/othervm -Djava.security.manager=allow Test5023550 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test5023552.java b/test/jdk/java/beans/XMLEncoder/Test5023552.java index 45a026a325c66..11b0cefe75868 100644 --- a/test/jdk/java/beans/XMLEncoder/Test5023552.java +++ b/test/jdk/java/beans/XMLEncoder/Test5023552.java @@ -25,6 +25,7 @@ * @test * @bug 5023552 * @summary Tests reference count updating + * @run main/othervm -Djava.security.manager=allow Test5023552 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test5023557.java b/test/jdk/java/beans/XMLEncoder/Test5023557.java index be77cc282e5a4..efce0d5ddaa46 100644 --- a/test/jdk/java/beans/XMLEncoder/Test5023557.java +++ b/test/jdk/java/beans/XMLEncoder/Test5023557.java @@ -25,6 +25,7 @@ * @test * @bug 5023557 * @summary Tests complex references + * @run main/othervm -Djava.security.manager=allow Test5023557 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test5023559.java b/test/jdk/java/beans/XMLEncoder/Test5023559.java index 72f52eb1f6e0a..9fda201d3b91d 100644 --- a/test/jdk/java/beans/XMLEncoder/Test5023559.java +++ b/test/jdk/java/beans/XMLEncoder/Test5023559.java @@ -25,6 +25,7 @@ * @test * @bug 5023559 * @summary Tests encoding of the object with nested target + * @run main/othervm -Djava.security.manager=allow Test5023559 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6176120.java b/test/jdk/java/beans/XMLEncoder/Test6176120.java index a641eaa5a9f3b..7725b2ab3a02b 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6176120.java +++ b/test/jdk/java/beans/XMLEncoder/Test6176120.java @@ -25,6 +25,7 @@ * @test * @bug 6176120 * @summary Tests bean that contains constructor marked with ConstructorProperties annotation + * @run main/othervm -Djava.security.manager=allow Test6176120 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6187118.java b/test/jdk/java/beans/XMLEncoder/Test6187118.java index 46fbe69a5c97b..97506c14132f0 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6187118.java +++ b/test/jdk/java/beans/XMLEncoder/Test6187118.java @@ -25,6 +25,7 @@ * @test * @bug 6187118 * @summary Tests encoding of immutable list that creates itself + * @run main/othervm -Djava.security.manager=allow Test6187118 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6256805.java b/test/jdk/java/beans/XMLEncoder/Test6256805.java index c680f689b59d3..676fe49d34420 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6256805.java +++ b/test/jdk/java/beans/XMLEncoder/Test6256805.java @@ -25,6 +25,7 @@ * @test * @bug 6256805 * @summary Tests invalid XML characters encoding + * @run main/othervm -Djava.security.manager=allow Test6256805 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6437265.java b/test/jdk/java/beans/XMLEncoder/Test6437265.java index db9f220b28cc3..c4f97a43b85e9 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6437265.java +++ b/test/jdk/java/beans/XMLEncoder/Test6437265.java @@ -25,6 +25,7 @@ * @test * @bug 6437265 * @summary Tests encoding of container with BorderLayout + * @run main/othervm -Djava.security.manager=allow Test6437265 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6501431.java b/test/jdk/java/beans/XMLEncoder/Test6501431.java index 877d5984cacfa..9d93935242ff5 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6501431.java +++ b/test/jdk/java/beans/XMLEncoder/Test6501431.java @@ -25,6 +25,7 @@ * @test * @bug 6501431 * @summary Tests encoding of JMenuItem with accelerator property + * @run main/othervm -Djava.security.manager=allow Test6501431 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6505888.java b/test/jdk/java/beans/XMLEncoder/Test6505888.java index 44802b6f96eaf..443d7287c8c3d 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6505888.java +++ b/test/jdk/java/beans/XMLEncoder/Test6505888.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests bean with the property that is guarded by UnmodifiableList + * @run main/othervm -Djava.security.manager=allow Test6505888 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6531597.java b/test/jdk/java/beans/XMLEncoder/Test6531597.java index b9f501e7f8e77..58ca311a98ae5 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6531597.java +++ b/test/jdk/java/beans/XMLEncoder/Test6531597.java @@ -25,6 +25,7 @@ * @test * @bug 6531597 * @summary Tests encoding of arrays of primitives + * @run main/othervm -Djava.security.manager=allow Test6531597 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6570354.java b/test/jdk/java/beans/XMLEncoder/Test6570354.java index 0d37770a36118..c2cffd5a408a4 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6570354.java +++ b/test/jdk/java/beans/XMLEncoder/Test6570354.java @@ -25,6 +25,7 @@ * @test * @bug 6570354 * @summary Tests listeners removing + * @run main/othervm -Djava.security.manager=allow Test6570354 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6852574.java b/test/jdk/java/beans/XMLEncoder/Test6852574.java index 32a90b7e33822..40098cdfc645a 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6852574.java +++ b/test/jdk/java/beans/XMLEncoder/Test6852574.java @@ -25,6 +25,7 @@ * @test * @bug 6852574 * @summary Tests Enum subclass encoding + * @run main/othervm -Djava.security.manager=allow Test6852574 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6921644.java b/test/jdk/java/beans/XMLEncoder/Test6921644.java index b333e8a1d3e6e..9ccbe31bcf560 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6921644.java +++ b/test/jdk/java/beans/XMLEncoder/Test6921644.java @@ -25,6 +25,7 @@ * @test * @bug 6921644 * @summary Tests references to cached integer + * @run main/othervm -Djava.security.manager=allow Test6921644 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test6989223.java b/test/jdk/java/beans/XMLEncoder/Test6989223.java index 57730f1172b51..1bbc7fd96a721 100644 --- a/test/jdk/java/beans/XMLEncoder/Test6989223.java +++ b/test/jdk/java/beans/XMLEncoder/Test6989223.java @@ -25,6 +25,7 @@ * @test * @bug 6989223 * @summary Tests Rectangle2D.Double encoding + * @run main/othervm -Djava.security.manager=allow Test6989223 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test7080156.java b/test/jdk/java/beans/XMLEncoder/Test7080156.java index 4cbd6a091f182..1d6e86144b498 100644 --- a/test/jdk/java/beans/XMLEncoder/Test7080156.java +++ b/test/jdk/java/beans/XMLEncoder/Test7080156.java @@ -25,6 +25,7 @@ * @test * @bug 7080156 7094245 * @summary Tests beans with public arrays + * @run main/othervm -Djava.security.manager=allow Test7080156 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test7092744.java b/test/jdk/java/beans/XMLEncoder/Test7092744.java index 52f029b47a3db..838fdd60bead0 100644 --- a/test/jdk/java/beans/XMLEncoder/Test7092744.java +++ b/test/jdk/java/beans/XMLEncoder/Test7092744.java @@ -25,6 +25,7 @@ * @test * @bug 7092744 * @summary Tests for ambiguous methods + * @run main/othervm -Djava.security.manager=allow Test7092744 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test7169395.java b/test/jdk/java/beans/XMLEncoder/Test7169395.java index 42257f512cd1b..70df96bfb5452 100644 --- a/test/jdk/java/beans/XMLEncoder/Test7169395.java +++ b/test/jdk/java/beans/XMLEncoder/Test7169395.java @@ -25,6 +25,7 @@ * @test * @bug 7169395 * @summary Tests that array list initialized correctly + * @run main/othervm -Djava.security.manager=allow Test7169395 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test8013416.java b/test/jdk/java/beans/XMLEncoder/Test8013416.java index bcc345744ff2c..3f5e3b4887ffa 100644 --- a/test/jdk/java/beans/XMLEncoder/Test8013416.java +++ b/test/jdk/java/beans/XMLEncoder/Test8013416.java @@ -25,6 +25,7 @@ * @test * @bug 8013416 * @summary Tests public synthetic methods + * @run main/othervm -Djava.security.manager=allow Test8013416 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test8013557.java b/test/jdk/java/beans/XMLEncoder/Test8013557.java index 75036f80dedb2..e5ea44b302d9a 100644 --- a/test/jdk/java/beans/XMLEncoder/Test8013557.java +++ b/test/jdk/java/beans/XMLEncoder/Test8013557.java @@ -25,6 +25,7 @@ * @test * @bug 8013557 * @summary Tests beans with public fields + * @run main/othervm -Djava.security.manager=allow Test8013557 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test8016545.java b/test/jdk/java/beans/XMLEncoder/Test8016545.java index 466d8eb01fa03..789eb116c9d98 100644 --- a/test/jdk/java/beans/XMLEncoder/Test8016545.java +++ b/test/jdk/java/beans/XMLEncoder/Test8016545.java @@ -25,6 +25,7 @@ * @test * @bug 8016545 * @summary Tests beans with predefined fields + * @run main/othervm -Djava.security.manager=allow Test8016545 * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/Test8027066.java b/test/jdk/java/beans/XMLEncoder/Test8027066.java index 22d495d4f3148..a2183208b4e4f 100644 --- a/test/jdk/java/beans/XMLEncoder/Test8027066.java +++ b/test/jdk/java/beans/XMLEncoder/Test8027066.java @@ -25,6 +25,7 @@ * @test * @bug 8027066 * @summary Tests that the same array can be encoded twice + * @run main/othervm -Djava.security.manager=allow Test8027066 * @author Anton Nashatyrev */ public class Test8027066 extends AbstractTest { diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_AWTKeyStroke.java b/test/jdk/java/beans/XMLEncoder/java_awt_AWTKeyStroke.java index 6abd41fd9c9ec..93b02ac29b701 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_AWTKeyStroke.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_AWTKeyStroke.java @@ -25,6 +25,7 @@ * @test * @bug 6501431 * @summary Tests AWTKeyStroke encoding + * @run main/othervm -Djava.security.manager=allow java_awt_AWTKeyStroke * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_BasicStroke.java b/test/jdk/java/beans/XMLEncoder/java_awt_BasicStroke.java index 6a6efdad19992..9f7631d80a2fc 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_BasicStroke.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_BasicStroke.java @@ -25,6 +25,7 @@ * @test * @bug 4358979 * @summary Tests BasicStroke encoding + * @run main/othervm -Djava.security.manager=allow java_awt_BasicStroke * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_BorderLayout.java b/test/jdk/java/beans/XMLEncoder/java_awt_BorderLayout.java index a7e515ad1b533..beec75e282597 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_BorderLayout.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_BorderLayout.java @@ -25,6 +25,7 @@ * @test * @bug 4916852 * @summary Tests BorderLayout encoding + * @run main/othervm -Djava.security.manager=allow java_awt_BorderLayout * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_CardLayout.java b/test/jdk/java/beans/XMLEncoder/java_awt_CardLayout.java index 382bba5addd0b..2b58b2724b501 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_CardLayout.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_CardLayout.java @@ -26,6 +26,7 @@ * @bug 8007458 * @summary Tests CardLayout encoding * @modules java.desktop/java.awt:open + * @run main/othervm -Djava.security.manager=allow java_awt_CardLayout * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_Color.java b/test/jdk/java/beans/XMLEncoder/java_awt_Color.java index 6e310e0dd3e1c..935b36f52da39 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_Color.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_Color.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests Color encoding + * @run main/othervm -Djava.security.manager=allow java_awt_Color * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_Component.java b/test/jdk/java/beans/XMLEncoder/java_awt_Component.java index d4207fd4978d6..71329201ed45b 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_Component.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_Component.java @@ -25,6 +25,7 @@ * @test * @bug 4916852 * @summary Tests Component encoding (background, foreground and font) + * @run main/othervm -Djava.security.manager=allow java_awt_Component * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_Cursor.java b/test/jdk/java/beans/XMLEncoder/java_awt_Cursor.java index 9090742bbd2a5..7612925c898ff 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_Cursor.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_Cursor.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests Cursor encoding + * @run main/othervm -Djava.security.manager=allow java_awt_Cursor * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_Dimension.java b/test/jdk/java/beans/XMLEncoder/java_awt_Dimension.java index 8e82767e55806..3a9f61ac90dbb 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_Dimension.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_Dimension.java @@ -25,6 +25,7 @@ * @test * @bug 4741757 6402062 6471539 * @summary Tests Dimension encoding + * @run main/othervm -Djava.security.manager=allow java_awt_Dimension * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_Font.java b/test/jdk/java/beans/XMLEncoder/java_awt_Font.java index 95f5f67129025..45a3ef61d9c30 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_Font.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_Font.java @@ -25,6 +25,7 @@ * @test * @bug 4951733 6402062 * @summary Tests Font encoding + * @run main/othervm -Djava.security.manager=allow java_awt_Font * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_GradientPaint.java b/test/jdk/java/beans/XMLEncoder/java_awt_GradientPaint.java index 40d8bf59a9fda..ccf7022ae7f29 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_GradientPaint.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_GradientPaint.java @@ -25,6 +25,7 @@ * @test * @bug 4358979 * @summary Tests GradientPaint encoding + * @run main/othervm -Djava.security.manager=allow java_awt_GradientPaint * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_GridBagConstraints.java b/test/jdk/java/beans/XMLEncoder/java_awt_GridBagConstraints.java index 656a11d763ff9..2d80d9cd731da 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_GridBagConstraints.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_GridBagConstraints.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 * @summary Tests GridBagConstraints encoding + * @run main/othervm -Djava.security.manager=allow java_awt_GridBagConstraints * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_GridBagLayout.java b/test/jdk/java/beans/XMLEncoder/java_awt_GridBagLayout.java index 12af8203fb449..98a5cc48715ea 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_GridBagLayout.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_GridBagLayout.java @@ -26,6 +26,7 @@ * @bug 8007458 * @summary Tests GridBagLayout encoding * @modules java.desktop/java.awt:open + * @run main/othervm -Djava.security.manager=allow java_awt_GridBagLayout * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_Insets.java b/test/jdk/java/beans/XMLEncoder/java_awt_Insets.java index 643701ebc901d..cac3c10516ae5 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_Insets.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_Insets.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6471539 * @summary Tests Insets encoding + * @run main/othervm -Djava.security.manager=allow java_awt_Insets * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_LinearGradientPaint.java b/test/jdk/java/beans/XMLEncoder/java_awt_LinearGradientPaint.java index 7a636b10c65cd..47b9f28e67e13 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_LinearGradientPaint.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_LinearGradientPaint.java @@ -25,6 +25,7 @@ * @test * @bug 4358979 * @summary Tests LinearGradientPaint encoding + * @run main/othervm -Djava.security.manager=allow java_awt_LinearGradientPaint * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_MenuShortcut.java b/test/jdk/java/beans/XMLEncoder/java_awt_MenuShortcut.java index 497af7bc79748..5b0a7f1f43e97 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_MenuShortcut.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_MenuShortcut.java @@ -25,6 +25,7 @@ * @test * @bug 4818598 * @summary Tests MenuShortcut value encoding + * @run main/othervm -Djava.security.manager=allow java_awt_MenuShortcut * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_Point.java b/test/jdk/java/beans/XMLEncoder/java_awt_Point.java index ed65d1ed97ed5..6aeb17f6bb03f 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_Point.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_Point.java @@ -25,6 +25,7 @@ * @test * @bug 4741757 6402062 6471539 * @summary Tests Point encoding + * @run main/othervm -Djava.security.manager=allow java_awt_Point * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_RadialGradientPaint.java b/test/jdk/java/beans/XMLEncoder/java_awt_RadialGradientPaint.java index fbb7be9864a75..f432153504e93 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_RadialGradientPaint.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_RadialGradientPaint.java @@ -25,6 +25,7 @@ * @test * @bug 4358979 * @summary Tests RadialGradientPaint encoding + * @run main/othervm -Djava.security.manager=allow java_awt_RadialGradientPaint * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_Rectangle.java b/test/jdk/java/beans/XMLEncoder/java_awt_Rectangle.java index 4212c047d5d82..132c6ffdcced7 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_Rectangle.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_Rectangle.java @@ -25,6 +25,7 @@ * @test * @bug 4741757 6402062 6471539 * @summary Tests Rectangle encoding + * @run main/othervm -Djava.security.manager=allow java_awt_Rectangle * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_ScrollPane.java b/test/jdk/java/beans/XMLEncoder/java_awt_ScrollPane.java index 4861f625ff9e7..a3a7552b90b75 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_ScrollPane.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_ScrollPane.java @@ -26,6 +26,7 @@ * @bug 6402062 6487891 * @summary Tests ScrollPane encoding * @key headful + * @run main/othervm -Djava.security.manager=allow java_awt_ScrollPane * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_awt_geom_AffineTransform.java b/test/jdk/java/beans/XMLEncoder/java_awt_geom_AffineTransform.java index 9e5da1160c138..d7d7e16eb9a73 100644 --- a/test/jdk/java/beans/XMLEncoder/java_awt_geom_AffineTransform.java +++ b/test/jdk/java/beans/XMLEncoder/java_awt_geom_AffineTransform.java @@ -25,6 +25,7 @@ * @test * @bug 4358979 * @summary Tests AffineTransform encoding + * @run main/othervm -Djava.security.manager=allow java_awt_geom_AffineTransform * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_beans_EventHandler.java b/test/jdk/java/beans/XMLEncoder/java_beans_EventHandler.java index 3eb1b1df87773..700032b7d6579 100644 --- a/test/jdk/java/beans/XMLEncoder/java_beans_EventHandler.java +++ b/test/jdk/java/beans/XMLEncoder/java_beans_EventHandler.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests EventHandler encoding + * @run main/othervm -Djava.security.manager=allow java_beans_EventHandler * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_beans_Expression.java b/test/jdk/java/beans/XMLEncoder/java_beans_Expression.java index 7a1fb303b0cfd..b4fa548f2de55 100644 --- a/test/jdk/java/beans/XMLEncoder/java_beans_Expression.java +++ b/test/jdk/java/beans/XMLEncoder/java_beans_Expression.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests Expression encoding + * @run main/othervm -Djava.security.manager=allow java_beans_Expression * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_beans_Statement.java b/test/jdk/java/beans/XMLEncoder/java_beans_Statement.java index a7b952d0b5923..9fa576a6a1b9a 100644 --- a/test/jdk/java/beans/XMLEncoder/java_beans_Statement.java +++ b/test/jdk/java/beans/XMLEncoder/java_beans_Statement.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests Statement encoding + * @run main/othervm -Djava.security.manager=allow java_beans_Statement * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_lang_Character.java b/test/jdk/java/beans/XMLEncoder/java_lang_Character.java index 15e8c856222d0..f2970d159c272 100644 --- a/test/jdk/java/beans/XMLEncoder/java_lang_Character.java +++ b/test/jdk/java/beans/XMLEncoder/java_lang_Character.java @@ -25,6 +25,7 @@ * @test * @bug 6256805 * @summary Tests invalid XML character encoding + * @run main/othervm -Djava.security.manager=allow java_lang_Character * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_lang_Class.java b/test/jdk/java/beans/XMLEncoder/java_lang_Class.java index 85217504cf64c..fb1613a016496 100644 --- a/test/jdk/java/beans/XMLEncoder/java_lang_Class.java +++ b/test/jdk/java/beans/XMLEncoder/java_lang_Class.java @@ -25,6 +25,7 @@ * @test * @bug 4818598 * @summary Tests Class value encoding + * @run main/othervm -Djava.security.manager=allow java_lang_Class * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_lang_Enum.java b/test/jdk/java/beans/XMLEncoder/java_lang_Enum.java index 7bf6434513471..445e9364eb94b 100644 --- a/test/jdk/java/beans/XMLEncoder/java_lang_Enum.java +++ b/test/jdk/java/beans/XMLEncoder/java_lang_Enum.java @@ -25,6 +25,7 @@ * @test * @bug 5015403 * @summary Tests Enum value encoding + * @run main/othervm -Djava.security.manager=allow java_lang_Enum * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_lang_String.java b/test/jdk/java/beans/XMLEncoder/java_lang_String.java index 31d5a81a51842..9d2c68a06bd61 100644 --- a/test/jdk/java/beans/XMLEncoder/java_lang_String.java +++ b/test/jdk/java/beans/XMLEncoder/java_lang_String.java @@ -25,6 +25,7 @@ * @test * @bug 6256805 * @summary Tests invalid XML string encoding + * @run main/othervm -Djava.security.manager=allow java_lang_String * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_lang_reflect_Field.java b/test/jdk/java/beans/XMLEncoder/java_lang_reflect_Field.java index 699d1b53a4953..3a06079dd19ca 100644 --- a/test/jdk/java/beans/XMLEncoder/java_lang_reflect_Field.java +++ b/test/jdk/java/beans/XMLEncoder/java_lang_reflect_Field.java @@ -25,6 +25,7 @@ * @test * @bug 4818598 * @summary Tests Field value encoding + * @run main/othervm -Djava.security.manager=allow java_lang_reflect_Field * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_lang_reflect_Method.java b/test/jdk/java/beans/XMLEncoder/java_lang_reflect_Method.java index 161de331c2312..684bfb40375e2 100644 --- a/test/jdk/java/beans/XMLEncoder/java_lang_reflect_Method.java +++ b/test/jdk/java/beans/XMLEncoder/java_lang_reflect_Method.java @@ -25,6 +25,7 @@ * @test * @bug 4818598 * @summary Tests Method value encoding + * @run main/othervm -Djava.security.manager=allow java_lang_reflect_Method * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_net_URI.java b/test/jdk/java/beans/XMLEncoder/java_net_URI.java index 4055008206c5a..dff6df732dae1 100644 --- a/test/jdk/java/beans/XMLEncoder/java_net_URI.java +++ b/test/jdk/java/beans/XMLEncoder/java_net_URI.java @@ -25,6 +25,7 @@ * @test * @bug 6245149 * @summary Tests URI encoding + * @run main/othervm -Djava.security.manager=allow java_net_URI * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_sql_Date.java b/test/jdk/java/beans/XMLEncoder/java_sql_Date.java index 7278e81e836e1..032fad774ba67 100644 --- a/test/jdk/java/beans/XMLEncoder/java_sql_Date.java +++ b/test/jdk/java/beans/XMLEncoder/java_sql_Date.java @@ -25,6 +25,7 @@ * @test * @bug 4733558 6471539 * @summary Tests Date encoding + * @run main/othervm -Djava.security.manager=allow java_sql_Date * @author Sergey Malenkov * @modules java.desktop * java.sql diff --git a/test/jdk/java/beans/XMLEncoder/java_sql_Time.java b/test/jdk/java/beans/XMLEncoder/java_sql_Time.java index 589bfa8f16a4a..5302da138058b 100644 --- a/test/jdk/java/beans/XMLEncoder/java_sql_Time.java +++ b/test/jdk/java/beans/XMLEncoder/java_sql_Time.java @@ -25,6 +25,7 @@ * @test * @bug 4733558 6471539 * @summary Tests Time encoding + * @run main/othervm -Djava.security.manager=allow java_sql_Time * @author Sergey Malenkov * @modules java.desktop * java.sql diff --git a/test/jdk/java/beans/XMLEncoder/java_sql_Timestamp.java b/test/jdk/java/beans/XMLEncoder/java_sql_Timestamp.java index 94d473155c3ec..0f2f80a8ccb20 100644 --- a/test/jdk/java/beans/XMLEncoder/java_sql_Timestamp.java +++ b/test/jdk/java/beans/XMLEncoder/java_sql_Timestamp.java @@ -25,6 +25,7 @@ * @test * @bug 4733558 6471539 * @summary Tests Timestamp encoding + * @run main/othervm -Djava.security.manager=allow java_sql_Timestamp * @author Sergey Malenkov * @modules java.desktop * java.sql diff --git a/test/jdk/java/beans/XMLEncoder/java_util_ArrayList.java b/test/jdk/java/beans/XMLEncoder/java_util_ArrayList.java index 1a84062a77f60..ece00580ec31f 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_ArrayList.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_ArrayList.java @@ -25,6 +25,7 @@ * @test * @bug 4631471 * @summary Tests ArrayList encoding + * @run main/othervm -Djava.security.manager=allow java_util_ArrayList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptyList.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptyList.java index 0f41464060ed9..b5b0e12c5e67c 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptyList.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptyList.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests EmptyList encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_EmptyList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptyMap.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptyMap.java index 794c95c5c2630..ccc4385ed9227 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptyMap.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptyMap.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests EmptyMap encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_EmptyMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptySet.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptySet.java index fe03a8d751f38..f74d409445a52 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptySet.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_EmptySet.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests EmptySet encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_EmptySet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonList.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonList.java index 66bcd158d1fce..5942217a59c95 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonList.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonList.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SingletonList encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SingletonList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonMap.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonMap.java index 5efbda71fa2b0..e9fd90abf8102 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonMap.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonMap.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SingletonMap encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SingletonMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonSet.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonSet.java index d302c29abbdb9..fddd57c104fe6 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonSet.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SingletonSet.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SingletonSet encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SingletonSet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedCollection.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedCollection.java index 6548a45531188..f92ec82690c60 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedCollection.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedCollection.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SynchronizedCollection encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SynchronizedCollection * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedList.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedList.java index b95357fa08508..fbc9ea6e4642f 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedList.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedList.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SynchronizedList encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SynchronizedList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedMap.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedMap.java index b9aeea1a01688..998abe17ef375 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedMap.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedMap.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SynchronizedMap encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SynchronizedMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedRandomAccessList.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedRandomAccessList.java index 382b60e457fe4..15eb8bf19804e 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedRandomAccessList.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedRandomAccessList.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SynchronizedRandomAccessList encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SynchronizedRandomAccessList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSet.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSet.java index 0fd60cf1a10de..54e88a1ccfd37 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSet.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSet.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SynchronizedSet encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SynchronizedSet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSortedMap.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSortedMap.java index 72518bfcff156..4ff12e4ebe857 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSortedMap.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSortedMap.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SynchronizedSortedMap encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SynchronizedSortedMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSortedSet.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSortedSet.java index 85d0491fb5f12..548e3c41d40a5 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSortedSet.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_SynchronizedSortedSet.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests SynchronizedSortedSet encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_SynchronizedSortedSet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableCollection.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableCollection.java index de964c81dfd9c..6f2a24205c890 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableCollection.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableCollection.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests UnmodifiableCollection encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_UnmodifiableCollection * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableList.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableList.java index 739cc86c63381..478759e426396 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableList.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableList.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests UnmodifiableList encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_UnmodifiableList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableMap.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableMap.java index 00db87b7ae0d1..7ff7970816663 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableMap.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableMap.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests UnmodifiableMap encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_UnmodifiableMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableRandomAccessList.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableRandomAccessList.java index a45360003cdfe..e2bd7ff20040c 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableRandomAccessList.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableRandomAccessList.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests UnmodifiableRandomAccessList encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_UnmodifiableRandomAccessList * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSet.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSet.java index 31decb2c88674..92f82fb531960 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSet.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSet.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests UnmodifiableSet encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_UnmodifiableSet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSortedMap.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSortedMap.java index 739460fe504aa..414f404dc71ab 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSortedMap.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSortedMap.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests UnmodifiableSortedMap encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_UnmodifiableSortedMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSortedSet.java b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSortedSet.java index 53ff8cf3ed048..1103fc3d3d244 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSortedSet.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Collections_UnmodifiableSortedSet.java @@ -25,6 +25,7 @@ * @test * @bug 6505888 * @summary Tests UnmodifiableSortedSet encoding + * @run main/othervm -Djava.security.manager=allow java_util_Collections_UnmodifiableSortedSet * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_Date.java b/test/jdk/java/beans/XMLEncoder/java_util_Date.java index 2fbeedba52acd..b2b2b6062be3b 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_Date.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_Date.java @@ -25,6 +25,7 @@ * @test * @bug 4733558 6471539 * @summary Tests Date encoding + * @run main/othervm -Djava.security.manager=allow java_util_Date * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/java_util_HashMap.java b/test/jdk/java/beans/XMLEncoder/java_util_HashMap.java index 689212c237d4d..f4359fbcc129a 100644 --- a/test/jdk/java/beans/XMLEncoder/java_util_HashMap.java +++ b/test/jdk/java/beans/XMLEncoder/java_util_HashMap.java @@ -25,6 +25,7 @@ * @test * @bug 4631471 4921212 4994637 * @summary Tests HashMap encoding + * @run main/othervm -Djava.security.manager=allow java_util_HashMap * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_Box.java b/test/jdk/java/beans/XMLEncoder/javax_swing_Box.java index abf1cd53b31d9..ef3ae7b9903bf 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_Box.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_Box.java @@ -25,6 +25,7 @@ * @test * @bug 4818598 * @summary Tests Box value encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_Box * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_BoxLayout.java b/test/jdk/java/beans/XMLEncoder/javax_swing_BoxLayout.java index b4f9c05241393..d70b96a49e515 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_BoxLayout.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_BoxLayout.java @@ -25,6 +25,7 @@ * @test * @bug 6405175 6487891 * @summary Tests BoxLayout encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_BoxLayout * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_Box_Filler.java b/test/jdk/java/beans/XMLEncoder/javax_swing_Box_Filler.java index b6fbd1a6d830f..b08ce2f113c87 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_Box_Filler.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_Box_Filler.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests Filler encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_Box_Filler * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_DefaultCellEditor.java b/test/jdk/java/beans/XMLEncoder/javax_swing_DefaultCellEditor.java index ce66182ceaf07..ae9bf62047f93 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_DefaultCellEditor.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_DefaultCellEditor.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests DefaultCellEditor encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_DefaultCellEditor * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_JButton.java b/test/jdk/java/beans/XMLEncoder/javax_swing_JButton.java index 3582716ffa256..8dbb241481937 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_JButton.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_JButton.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests JButton encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_JButton * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_JComponent.java b/test/jdk/java/beans/XMLEncoder/javax_swing_JComponent.java index 9ca11f9954aa5..2695538ce24ac 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_JComponent.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_JComponent.java @@ -28,6 +28,7 @@ * @test * @bug 8131754 * @summary Tests JComponent encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_JComponent */ public final class javax_swing_JComponent extends AbstractTest { diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_JLayeredPane.java b/test/jdk/java/beans/XMLEncoder/javax_swing_JLayeredPane.java index 1e41bc41e7bcc..9ca4ceabd63c7 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_JLayeredPane.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_JLayeredPane.java @@ -25,6 +25,7 @@ * @test * @bug 5023552 6972468 * @summary Tests JLayeredPane encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_JLayeredPane * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_JSplitPane.java b/test/jdk/java/beans/XMLEncoder/javax_swing_JSplitPane.java index 2349c99d315b4..020e3c85db645 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_JSplitPane.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_JSplitPane.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests JSplitPane encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_JSplitPane * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_JTree.java b/test/jdk/java/beans/XMLEncoder/javax_swing_JTree.java index b1ce8efb7a8c6..2ee375c1763f6 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_JTree.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_JTree.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests JTree encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_JTree * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_KeyStroke.java b/test/jdk/java/beans/XMLEncoder/javax_swing_KeyStroke.java index 86f1f7b71d543..3ad47cb95f2f7 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_KeyStroke.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_KeyStroke.java @@ -25,6 +25,7 @@ * @test * @bug 6501431 * @summary Tests KeyStroke encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_KeyStroke * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_OverlayLayout.java b/test/jdk/java/beans/XMLEncoder/javax_swing_OverlayLayout.java index 2ace41d000801..447aba0791a9c 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_OverlayLayout.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_OverlayLayout.java @@ -25,6 +25,7 @@ * @test * @bug 6405175 6487891 * @summary Tests OverlayLayout encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_OverlayLayout * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_BevelBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_BevelBorder.java index e2909fa3e3898..f6b1ab2e817ba 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_BevelBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_BevelBorder.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests BevelBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_BevelBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_CompoundBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_CompoundBorder.java index 9c3953f47677d..9e146a3af0947 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_CompoundBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_CompoundBorder.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests CompoundBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_CompoundBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_EmptyBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_EmptyBorder.java index 89067c82f06f6..578fe31514955 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_EmptyBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_EmptyBorder.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests EmptyBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_EmptyBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_EtchedBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_EtchedBorder.java index b1244539c6d13..04418dc89eca9 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_EtchedBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_EtchedBorder.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests EtchedBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_EtchedBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_LineBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_LineBorder.java index 7f2b8fa7afa47..b4cee00a9b981 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_LineBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_LineBorder.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests LineBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_LineBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_MatteBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_MatteBorder.java index 5f68c26722863..60e24780503b3 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_MatteBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_MatteBorder.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 * @summary Tests MatteBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_MatteBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_SoftBevelBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_SoftBevelBorder.java index e2bd372df118d..4e6fbed039347 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_SoftBevelBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_SoftBevelBorder.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests SoftBevelBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_SoftBevelBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_StrokeBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_StrokeBorder.java index 0ee1fda4ca893..fb9420d9a9092 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_StrokeBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_StrokeBorder.java @@ -25,6 +25,7 @@ * @test * @bug 4358979 * @summary Tests StrokeBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_StrokeBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_border_TitledBorder.java b/test/jdk/java/beans/XMLEncoder/javax_swing_border_TitledBorder.java index 42caa3d5d46db..257b6497b6510 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_border_TitledBorder.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_border_TitledBorder.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests TitledBorder encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_border_TitledBorder * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_BevelBorderUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_BevelBorderUIResource.java index 91b84332c23c2..770a6603659fb 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_BevelBorderUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_BevelBorderUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests BevelBorderUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_BorderUIResource_BevelBorderUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_CompoundBorderUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_CompoundBorderUIResource.java index d8fbeb3bbfa4e..936a76fb661f9 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_CompoundBorderUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_CompoundBorderUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests CompoundBorderUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_BorderUIResource_CompoundBorderUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EmptyBorderUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EmptyBorderUIResource.java index b65f502588ac0..9721f6c487b45 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EmptyBorderUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EmptyBorderUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests EmptyBorderUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_BorderUIResource_EmptyBorderUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EtchedBorderUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EtchedBorderUIResource.java index 4f393ebddd89d..ce818c6afbce9 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EtchedBorderUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EtchedBorderUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests EtchedBorderUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_BorderUIResource_EtchedBorderUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_LineBorderUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_LineBorderUIResource.java index 540ce2070b1d7..abc67c6d51f4c 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_LineBorderUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_LineBorderUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests LineBorderUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_BorderUIResource_LineBorderUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_MatteBorderUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_MatteBorderUIResource.java index d7e2aac96e5eb..4be6691256870 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_MatteBorderUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_MatteBorderUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 * @summary Tests MatteBorderUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_BorderUIResource_MatteBorderUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java index 24564fd96fe6e..03e59c155620d 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests TitledBorderUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_BorderUIResource_TitledBorderUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_ColorUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_ColorUIResource.java index 313cfa66a1786..86f04ac3fa8e6 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_ColorUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_ColorUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests ColorUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_ColorUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_FontUIResource.java b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_FontUIResource.java index a28d7cf438782..32770bc60f083 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_FontUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_plaf_FontUIResource.java @@ -25,6 +25,7 @@ * @test * @bug 4951733 6402062 * @summary Tests FontUIResource encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_plaf_FontUIResource * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_tree_DefaultTreeModel.java b/test/jdk/java/beans/XMLEncoder/javax_swing_tree_DefaultTreeModel.java index 7ee7c0b94d819..93e7d91175e6d 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_tree_DefaultTreeModel.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_tree_DefaultTreeModel.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests DefaultTreeModel encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_tree_DefaultTreeModel * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/javax_swing_tree_TreePath.java b/test/jdk/java/beans/XMLEncoder/javax_swing_tree_TreePath.java index 7171eadac82ae..c154be327ea7c 100644 --- a/test/jdk/java/beans/XMLEncoder/javax_swing_tree_TreePath.java +++ b/test/jdk/java/beans/XMLEncoder/javax_swing_tree_TreePath.java @@ -25,6 +25,7 @@ * @test * @bug 6402062 6487891 * @summary Tests TreePath encoding + * @run main/othervm -Djava.security.manager=allow javax_swing_tree_TreePath * @author Sergey Malenkov */ diff --git a/test/jdk/java/beans/XMLEncoder/sun_swing_PrintColorUIResource.java b/test/jdk/java/beans/XMLEncoder/sun_swing_PrintColorUIResource.java index b6e794690d1e9..5ae0f23ed4e7b 100644 --- a/test/jdk/java/beans/XMLEncoder/sun_swing_PrintColorUIResource.java +++ b/test/jdk/java/beans/XMLEncoder/sun_swing_PrintColorUIResource.java @@ -26,6 +26,7 @@ * @bug 6589532 * @summary Tests PrintColorUIResource value encoding * @modules java.desktop/sun.swing + * @run main/othervm -Djava.security.manager=allow sun_swing_PrintColorUIResource * @author Sergey Malenkov */ From 996837c89f489ba6b730c4639d1c7ab1dd7ffca6 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:47 -0400 Subject: [PATCH 13/19] test for core-libs --- .../sun/jndi/ldap/LdapDnsProviderTest.java | 4 +-- test/jdk/java/io/File/CheckPermission.java | 1 + test/jdk/java/io/File/GetXSpace.java | 1 + .../AuditStreamSubclass.java | 2 +- .../Class/forName/modules/TestDriver.java | 1 + .../ClassDeclaredFieldsTest.java | 2 +- .../FieldSetAccessibleTest.java | 2 +- ...closingConstructorWithSecurityManager.java | 2 +- .../EnclosingMethodWithSecurityManager.java | 2 +- .../lang/Class/getResource/ResourcesTest.java | 1 + .../lang/ClassLoader/UninitializedParent.java | 2 +- .../getResource/modules/ResourcesTest.java | 1 + .../lang/ModuleTests/WithSecurityManager.java | 4 +-- test/jdk/java/lang/ProcessBuilder/Basic.java | 6 ++-- .../ProcessBuilder/SecurityManagerClinit.java | 2 +- .../lang/ProcessHandle/PermissionTest.java | 2 +- .../lang/RuntimeTests/exec/ExecCommand.java | 2 +- .../SecurityManager/CheckPackageMatching.java | 2 +- .../CheckSecurityProvider.java | 2 +- .../CallerSensitiveMethod/Main.java | 2 +- .../lang/StackWalker/GetCallerClassTest.java | 2 +- .../String/concat/WithSecurityManager.java | 4 +-- .../Logger/custom/CustomLoggerTest.java | 4 +-- .../Logger/default/DefaultLoggerTest.java | 8 ++--- .../BaseLoggerFinderTest.java | 4 +-- .../DefaultLoggerFinderTest.java | 4 +-- .../BaseDefaultLoggerFinderTest.java | 8 ++--- .../BaseLoggerBridgeTest.java | 4 +-- .../BasePlatformLoggerTest.java | 4 +-- .../BootstrapLogger/BootstrapLoggerTest.java | 4 +-- .../LoggerBridgeTest/LoggerBridgeTest.java | 4 +-- .../LoggerFinderLoaderTest.java | 36 +++++++++---------- .../PlatformLoggerBridgeTest.java | 4 +-- .../DefaultLoggerBridgeTest.java | 4 +-- .../DefaultPlatformLoggerTest.java | 2 +- .../lang/annotation/ParameterAnnotations.java | 2 +- .../CustomRepeatingWithSecurityManager.java | 2 +- .../RepeatingWithSecurityManager.java | 2 +- .../lang/invoke/InvokeDynamicPrintArgs.java | 1 + .../lang/invoke/MethodHandleConstants.java | 1 + .../invoke/MethodTypeSecurityManager.java | 2 +- .../java/lang/invoke/TestPrivateMember.java | 2 +- .../LambdaAccessControlDoPrivilegedTest.java | 3 +- .../lambda/LambdaAccessControlTest.java | 2 +- .../lambda/LogGeneratedClassesTest.java | 6 ++++ .../ModuleFinderWithSecurityManager.java | 4 +-- .../Nestmates/TestSecurityManagerChecks.java | 2 +- .../nonPublicProxy/NonPublicProxyClass.java | 4 +-- .../Proxy/nonPublicProxy/SimpleProxy.java | 2 +- .../TestSecurityManagerChecks.java | 4 +-- .../DriverManagerPermissionsTests.java | 19 ++++++---- .../java/util/Properties/LoadAndStoreXML.java | 1 + .../java/util/ResourceBundle/Bug6359330.java | 2 +- .../modules/security/TestPermission.java | 1 + .../ServiceLoader/security/SecurityTest.java | 2 +- .../Executors/PrivilegedCallables.java | 2 +- .../ThreadPoolExecutor/ConfigChanges.java | 2 +- .../ThreadPoolExecutor/ThrowingTasks.java | 1 + .../concurrent/atomic/AtomicUpdaters.java | 2 +- .../util/concurrent/tck/JSR166TestCase.java | 9 ++--- .../AnonymousLogger/TestAnonymousLogger.java | 2 +- .../util/logging/FileHandlerLongLimit.java | 2 +- .../java/util/logging/FileHandlerPath.java | 2 +- .../logging/FileHandlerPatternExceptions.java | 2 +- .../java/util/logging/HandlersConfigTest.java | 4 +-- .../ParentLoggerWithHandlerGC.java | 2 +- .../Configuration/TestConfigurationLock.java | 2 +- .../HandlersOnComplexResetUpdate.java | 2 +- .../HandlersOnComplexUpdate.java | 2 +- ...SimpleUpdateConfigWithInputStreamTest.java | 2 +- .../SimpleUpdateConfigurationTest.java | 2 +- .../UpdateConfigurationTest.java | 2 +- .../setLevel/TestRootLoggerLevel.java | 2 +- .../logging/Logger/getLogger/TestLogger.java | 2 +- .../TestSetResourceBundle.java | 4 +-- .../RootLogger/RootLevelInConfigFile.java | 2 +- .../util/logging/SystemLoggerConfigTest.java | 2 +- .../util/logging/TestAppletLoggerContext.java | 20 +++++------ .../logging/TestConfigurationListeners.java | 4 +-- .../java/util/logging/TestGetLoggerNPE.java | 4 +-- .../logging/TestLogConfigurationDeadLock.java | 2 +- .../TestLogConfigurationDeadLockWithConf.java | 2 +- .../util/logging/TestLoggerBundleSync.java | 2 +- .../TestLoggingWithMainAppContext.java | 2 +- .../java/util/logging/TestMainAppContext.java | 2 +- test/jdk/java/util/spi/ToolProviderTest.java | 2 +- .../SyncFactoryPermissionsTests.java | 12 ++++--- .../internal/jrtfs/WithSecurityManager.java | 4 +-- test/jdk/tools/jlink/SecurityTest.java | 2 +- 89 files changed, 172 insertions(+), 143 deletions(-) rename test/jdk/java/sql/{testng/test/sql/othervm => permissionTests}/DriverManagerPermissionsTests.java (93%) rename test/jdk/javax/sql/{testng/test/rowset/spi => permissionTests}/SyncFactoryPermissionsTests.java (95%) diff --git a/test/jdk/com/sun/jndi/ldap/LdapDnsProviderTest.java b/test/jdk/com/sun/jndi/ldap/LdapDnsProviderTest.java index 19dd9271b7104..3acc3d0cae196 100644 --- a/test/jdk/com/sun/jndi/ldap/LdapDnsProviderTest.java +++ b/test/jdk/com/sun/jndi/ldap/LdapDnsProviderTest.java @@ -61,8 +61,8 @@ * @compile dnsprovider/TestDnsProvider.java * @run main/othervm LdapDnsProviderTest * @run main/othervm LdapDnsProviderTest nosm - * @run main/othervm LdapDnsProviderTest smnodns - * @run main/othervm LdapDnsProviderTest smdns + * @run main/othervm -Djava.security.manager=allow LdapDnsProviderTest smnodns + * @run main/othervm -Djava.security.manager=allow LdapDnsProviderTest smdns * @run main/othervm LdapDnsProviderTest nosmbaddns */ diff --git a/test/jdk/java/io/File/CheckPermission.java b/test/jdk/java/io/File/CheckPermission.java index 33fffddd28373..f6126a088434f 100644 --- a/test/jdk/java/io/File/CheckPermission.java +++ b/test/jdk/java/io/File/CheckPermission.java @@ -25,6 +25,7 @@ * @bug 8017212 * @summary Examine methods in File.java that access the file system do the * right permission check when a security manager exists. + * @run main/othervm -Djava.security.manager=allow CheckPermission * @author Dan Xu */ diff --git a/test/jdk/java/io/File/GetXSpace.java b/test/jdk/java/io/File/GetXSpace.java index 80a23db63bb60..39402fa9b70a4 100644 --- a/test/jdk/java/io/File/GetXSpace.java +++ b/test/jdk/java/io/File/GetXSpace.java @@ -27,6 +27,7 @@ * @requires (os.family == "linux" | os.family == "mac" | * os.family == "windows") * @summary Basic functionality of File.get-X-Space methods. + * @run main/othervm -Djava.security.manager=allow GetXSpace */ import java.io.BufferedReader; diff --git a/test/jdk/java/io/Serializable/auditStreamSubclass/AuditStreamSubclass.java b/test/jdk/java/io/Serializable/auditStreamSubclass/AuditStreamSubclass.java index 973a539318e4f..093ef1c98c945 100644 --- a/test/jdk/java/io/Serializable/auditStreamSubclass/AuditStreamSubclass.java +++ b/test/jdk/java/io/Serializable/auditStreamSubclass/AuditStreamSubclass.java @@ -27,7 +27,7 @@ * cannot be constructed if they override security-sensitive non-final * methods. * @build AuditStreamSubclass - * @run main/othervm AuditStreamSubclass + * @run main/othervm -Djava.security.manager=allow AuditStreamSubclass */ import java.io.*; diff --git a/test/jdk/java/lang/Class/forName/modules/TestDriver.java b/test/jdk/java/lang/Class/forName/modules/TestDriver.java index 218aaeb52525c..96db158e90774 100644 --- a/test/jdk/java/lang/Class/forName/modules/TestDriver.java +++ b/test/jdk/java/lang/Class/forName/modules/TestDriver.java @@ -112,6 +112,7 @@ public void testLayer() throws Exception { @Test public void testDeniedClassLoaderAccess() throws Exception { String[] options = new String[] { + "-Djava.security.manager=allow", "--module-path", MOD_DEST_DIR.toString(), "--add-modules", String.join(",", modules), "-m", "m3/p3.NoGetClassLoaderAccess" diff --git a/test/jdk/java/lang/Class/getDeclaredField/ClassDeclaredFieldsTest.java b/test/jdk/java/lang/Class/getDeclaredField/ClassDeclaredFieldsTest.java index 1b112699b68ec..f62e80dddbbbc 100644 --- a/test/jdk/java/lang/Class/getDeclaredField/ClassDeclaredFieldsTest.java +++ b/test/jdk/java/lang/Class/getDeclaredField/ClassDeclaredFieldsTest.java @@ -42,7 +42,7 @@ * hidden from reflection access. * @modules java.base/java.lang:open * @run main/othervm ClassDeclaredFieldsTest UNSECURE - * @run main/othervm ClassDeclaredFieldsTest SECURE + * @run main/othervm -Djava.security.manager=allow ClassDeclaredFieldsTest SECURE * * @author danielfuchs */ diff --git a/test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java b/test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java index 99ee210205a62..60da85ce4705c 100644 --- a/test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java +++ b/test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java @@ -65,7 +65,7 @@ * and call setAccessible(false) followed by setAccessible(true); * @modules java.base/jdk.internal.module * @run main/othervm --add-modules=ALL-SYSTEM FieldSetAccessibleTest UNSECURE - * @run main/othervm --add-modules=ALL-SYSTEM FieldSetAccessibleTest SECURE + * @run main/othervm -Djava.security.manager=allow --add-modules=ALL-SYSTEM FieldSetAccessibleTest SECURE * * @author danielfuchs */ diff --git a/test/jdk/java/lang/Class/getEnclosingConstructor/EnclosingConstructorWithSecurityManager.java b/test/jdk/java/lang/Class/getEnclosingConstructor/EnclosingConstructorWithSecurityManager.java index 1c81b09fa5aef..e74942bef7413 100644 --- a/test/jdk/java/lang/Class/getEnclosingConstructor/EnclosingConstructorWithSecurityManager.java +++ b/test/jdk/java/lang/Class/getEnclosingConstructor/EnclosingConstructorWithSecurityManager.java @@ -25,7 +25,7 @@ * @test * @bug 8014678 * @run main EnclosingConstructorWithSecurityManager - * @run main/othervm EnclosingConstructorWithSecurityManager "WithSecurityManager" + * @run main/othervm -Djava.security.manager=allow EnclosingConstructorWithSecurityManager "WithSecurityManager" */ public class EnclosingConstructorWithSecurityManager { diff --git a/test/jdk/java/lang/Class/getEnclosingMethod/EnclosingMethodWithSecurityManager.java b/test/jdk/java/lang/Class/getEnclosingMethod/EnclosingMethodWithSecurityManager.java index fa14214cda66f..26120d1f03473 100644 --- a/test/jdk/java/lang/Class/getEnclosingMethod/EnclosingMethodWithSecurityManager.java +++ b/test/jdk/java/lang/Class/getEnclosingMethod/EnclosingMethodWithSecurityManager.java @@ -25,7 +25,7 @@ * @test * @bug 8014678 * @run main EnclosingMethodWithSecurityManager - * @run main/othervm EnclosingMethodWithSecurityManager "WithSecurityManager" + * @run main/othervm -Djava.security.manager=allow EnclosingMethodWithSecurityManager "WithSecurityManager" */ public class EnclosingMethodWithSecurityManager { diff --git a/test/jdk/java/lang/Class/getResource/ResourcesTest.java b/test/jdk/java/lang/Class/getResource/ResourcesTest.java index ebb8b29818e53..566a6f55447cb 100644 --- a/test/jdk/java/lang/Class/getResource/ResourcesTest.java +++ b/test/jdk/java/lang/Class/getResource/ResourcesTest.java @@ -82,6 +82,7 @@ public void runTest() throws Exception { int exitValue = executeTestJava("--module-path", MODS_DIR.toString(), "--add-modules", "m1,m2", + "-Djava.security.manager=allow", "-cp", CLASSES_DIR.toString(), "Main") .outputTo(System.out) diff --git a/test/jdk/java/lang/ClassLoader/UninitializedParent.java b/test/jdk/java/lang/ClassLoader/UninitializedParent.java index 0ef23a280f975..f84003257fff2 100644 --- a/test/jdk/java/lang/ClassLoader/UninitializedParent.java +++ b/test/jdk/java/lang/ClassLoader/UninitializedParent.java @@ -26,7 +26,7 @@ * @bug 6636650 * @summary Uninitialized class loaders should not be a parent of other * class loaders. - * @run main/othervm UninitializedParent + * @run main/othervm -Djava.security.manager=allow UninitializedParent */ diff --git a/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java b/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java index 6daa8a0bc2572..0932594974e79 100644 --- a/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java +++ b/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java @@ -80,6 +80,7 @@ public void runTest() throws Exception { int exitValue = executeTestJava("--module-path", MODS_DIR.toString(), "--add-modules", "m1,m2", + "-Djava.security.manager=allow", "-cp", CLASSES_DIR.toString(), "Main") .outputTo(System.out) diff --git a/test/jdk/java/lang/ModuleTests/WithSecurityManager.java b/test/jdk/java/lang/ModuleTests/WithSecurityManager.java index 88813c859acfa..2e0bbc983fe2a 100644 --- a/test/jdk/java/lang/ModuleTests/WithSecurityManager.java +++ b/test/jdk/java/lang/ModuleTests/WithSecurityManager.java @@ -25,8 +25,8 @@ * @test * @modules jdk.compiler * @summary Test java.lang.Module methods that specify permission checks - * @run main/othervm -Djava.security.policy=${test.src}/allow.policy WithSecurityManager allow - * @run main/othervm WithSecurityManager deny + * @run main/othervm -Djava.security.manager=allow -Djava.security.policy=${test.src}/allow.policy WithSecurityManager allow + * @run main/othervm -Djava.security.manager=allow WithSecurityManager deny */ import java.io.IOException; diff --git a/test/jdk/java/lang/ProcessBuilder/Basic.java b/test/jdk/java/lang/ProcessBuilder/Basic.java index 750b735e07d55..db820b49a0969 100644 --- a/test/jdk/java/lang/ProcessBuilder/Basic.java +++ b/test/jdk/java/lang/ProcessBuilder/Basic.java @@ -32,8 +32,8 @@ * @summary Basic tests for Process and Environment Variable code * @modules java.base/java.lang:open * @library /test/lib - * @run main/othervm/timeout=300 Basic - * @run main/othervm/timeout=300 -Djdk.lang.Process.launchMechanism=fork Basic + * @run main/othervm/timeout=300 -Djava.security.manager=allow Basic + * @run main/othervm/timeout=300 -Djava.security.manager=allow -Djdk.lang.Process.launchMechanism=fork Basic * @author Martin Buchholz */ @@ -42,7 +42,7 @@ * @modules java.base/java.lang:open * @requires (os.family == "linux") * @library /test/lib - * @run main/othervm/timeout=300 -Djdk.lang.Process.launchMechanism=posix_spawn Basic + * @run main/othervm/timeout=300 -Djava.security.manager=allow -Djdk.lang.Process.launchMechanism=posix_spawn Basic */ import java.lang.ProcessBuilder.Redirect; diff --git a/test/jdk/java/lang/ProcessBuilder/SecurityManagerClinit.java b/test/jdk/java/lang/ProcessBuilder/SecurityManagerClinit.java index ee0319bc11803..1aa56c9b728df 100644 --- a/test/jdk/java/lang/ProcessBuilder/SecurityManagerClinit.java +++ b/test/jdk/java/lang/ProcessBuilder/SecurityManagerClinit.java @@ -28,7 +28,7 @@ * @summary Check that Process-related classes have the proper * doPrivileged blocks, and can be initialized with an adversarial * security manager. - * @run main/othervm SecurityManagerClinit + * @run main/othervm -Djava.security.manager=allow SecurityManagerClinit * @author Martin Buchholz */ diff --git a/test/jdk/java/lang/ProcessHandle/PermissionTest.java b/test/jdk/java/lang/ProcessHandle/PermissionTest.java index 25616b7f5b57c..92085e70bcb8b 100644 --- a/test/jdk/java/lang/ProcessHandle/PermissionTest.java +++ b/test/jdk/java/lang/ProcessHandle/PermissionTest.java @@ -40,7 +40,7 @@ /* * @test - * @run testng/othervm PermissionTest + * @run testng/othervm -Djava.security.manager=allow PermissionTest * @summary Test Permissions to access Info */ diff --git a/test/jdk/java/lang/RuntimeTests/exec/ExecCommand.java b/test/jdk/java/lang/RuntimeTests/exec/ExecCommand.java index 30b13cb7c68fd..2b037aaafd60a 100644 --- a/test/jdk/java/lang/RuntimeTests/exec/ExecCommand.java +++ b/test/jdk/java/lang/RuntimeTests/exec/ExecCommand.java @@ -25,7 +25,7 @@ /** * @test * @bug 8012453 8016046 - * @run main/othervm ExecCommand + * @run main/othervm -Djava.security.manager=allow ExecCommand * @summary workaround for legacy applications with Runtime.getRuntime().exec(String command) */ diff --git a/test/jdk/java/lang/SecurityManager/CheckPackageMatching.java b/test/jdk/java/lang/SecurityManager/CheckPackageMatching.java index 418a04a685714..1ad1f57ff4396 100644 --- a/test/jdk/java/lang/SecurityManager/CheckPackageMatching.java +++ b/test/jdk/java/lang/SecurityManager/CheckPackageMatching.java @@ -25,7 +25,7 @@ * @test * @bug 8072692 * @summary Check the matching implemented by SecurityManager.checkPackageAccess - * @run main/othervm CheckPackageMatching + * @run main/othervm -Djava.security.manager=allow CheckPackageMatching */ import java.security.Security; diff --git a/test/jdk/java/lang/SecurityManager/CheckSecurityProvider.java b/test/jdk/java/lang/SecurityManager/CheckSecurityProvider.java index 7134654c0441b..4e97c625955dc 100644 --- a/test/jdk/java/lang/SecurityManager/CheckSecurityProvider.java +++ b/test/jdk/java/lang/SecurityManager/CheckSecurityProvider.java @@ -25,7 +25,7 @@ * @test * @bug 6997010 7191662 * @summary Consolidate java.security files into one file with modifications - * @run main/othervm CheckSecurityProvider + * @run main/othervm -Djava.security.manager=allow CheckSecurityProvider */ import java.security.Provider; diff --git a/test/jdk/java/lang/StackWalker/CallerSensitiveMethod/Main.java b/test/jdk/java/lang/StackWalker/CallerSensitiveMethod/Main.java index 6769f6d3355e5..a821e02544dcd 100644 --- a/test/jdk/java/lang/StackWalker/CallerSensitiveMethod/Main.java +++ b/test/jdk/java/lang/StackWalker/CallerSensitiveMethod/Main.java @@ -29,7 +29,7 @@ * @modules java.base/jdk.internal.reflect * @build java.base/java.util.CSM csm/* * @run main/othervm csm/jdk.test.CallerSensitiveTest - * @run main/othervm csm/jdk.test.CallerSensitiveTest sm + * @run main/othervm -Djava.security.manager=allow csm/jdk.test.CallerSensitiveTest sm */ public class Main { } diff --git a/test/jdk/java/lang/StackWalker/GetCallerClassTest.java b/test/jdk/java/lang/StackWalker/GetCallerClassTest.java index 31754720bdead..c02f0f051ab68 100644 --- a/test/jdk/java/lang/StackWalker/GetCallerClassTest.java +++ b/test/jdk/java/lang/StackWalker/GetCallerClassTest.java @@ -26,7 +26,7 @@ * @bug 8140450 8152893 8189291 * @summary Basic test for StackWalker.getCallerClass() * @run main/othervm GetCallerClassTest - * @run main/othervm GetCallerClassTest sm + * @run main/othervm -Djava.security.manager=allow GetCallerClassTest sm */ import static java.lang.StackWalker.Option.*; diff --git a/test/jdk/java/lang/String/concat/WithSecurityManager.java b/test/jdk/java/lang/String/concat/WithSecurityManager.java index dd1fe80dba0b3..eb72ca10015a8 100644 --- a/test/jdk/java/lang/String/concat/WithSecurityManager.java +++ b/test/jdk/java/lang/String/concat/WithSecurityManager.java @@ -31,8 +31,8 @@ * * @compile WithSecurityManager.java * - * @run main/othervm -Xverify:all WithSecurityManager - * @run main/othervm -Xverify:all --limit-modules=java.base WithSecurityManager + * @run main/othervm -Djava.security.manager=allow -Xverify:all WithSecurityManager + * @run main/othervm -Djava.security.manager=allow -Xverify:all --limit-modules=java.base WithSecurityManager */ public class WithSecurityManager { public static void main(String[] args) throws Throwable { diff --git a/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java b/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java index 823ba62adfed9..f53b422fb63d0 100644 --- a/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java +++ b/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java @@ -57,8 +57,8 @@ * @build CustomLoggerTest AccessSystemLogger * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot CustomLoggerTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot CustomLoggerTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot CustomLoggerTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot CustomLoggerTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot CustomLoggerTest WITHPERMISSIONS * @author danielfuchs */ public class CustomLoggerTest { diff --git a/test/jdk/java/lang/System/Logger/default/DefaultLoggerTest.java b/test/jdk/java/lang/System/Logger/default/DefaultLoggerTest.java index aaac885ec14ff..42c122bd0e09a 100644 --- a/test/jdk/java/lang/System/Logger/default/DefaultLoggerTest.java +++ b/test/jdk/java/lang/System/Logger/default/DefaultLoggerTest.java @@ -60,10 +60,10 @@ * @build DefaultLoggerTest AccessSystemLogger * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerTest WITHPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerTest WITHCUSTOMWRAPPERS - * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerTest WITHREFLECTION + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerTest WITHCUSTOMWRAPPERS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerTest WITHREFLECTION * @author danielfuchs */ public class DefaultLoggerTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/BaseLoggerFinderTest/BaseLoggerFinderTest.java b/test/jdk/java/lang/System/LoggerFinder/BaseLoggerFinderTest/BaseLoggerFinderTest.java index ab08bb08aa41e..338dd01f2589e 100644 --- a/test/jdk/java/lang/System/LoggerFinder/BaseLoggerFinderTest/BaseLoggerFinderTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/BaseLoggerFinderTest/BaseLoggerFinderTest.java @@ -49,8 +49,8 @@ * @build AccessSystemLogger BaseLoggerFinderTest CustomSystemClassLoader BaseLoggerFinder TestLoggerFinder * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest WITHPERMISSIONS * @author danielfuchs */ public class BaseLoggerFinderTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java b/test/jdk/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java index e040b5b8dc149..4eb89d910c6bb 100644 --- a/test/jdk/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java @@ -56,8 +56,8 @@ * @build AccessSystemLogger DefaultLoggerFinderTest * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerFinderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerFinderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerFinderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerFinderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerFinderTest WITHPERMISSIONS * @author danielfuchs */ public class DefaultLoggerFinderTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java index abb71e79d667f..2229b63b92093 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java @@ -67,10 +67,10 @@ * @build AccessSystemLogger BaseDefaultLoggerFinderTest CustomSystemClassLoader BaseLoggerFinder * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHCUSTOMWRAPPERS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHREFLECTION + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHCUSTOMWRAPPERS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHREFLECTION * @author danielfuchs */ public class BaseDefaultLoggerFinderTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/BaseLoggerBridgeTest/BaseLoggerBridgeTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/BaseLoggerBridgeTest/BaseLoggerBridgeTest.java index e52434f019c30..9e5357f848d96 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/BaseLoggerBridgeTest/BaseLoggerBridgeTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/BaseLoggerBridgeTest/BaseLoggerBridgeTest.java @@ -57,8 +57,8 @@ * @modules java.base/sun.util.logging java.base/jdk.internal.logger * @build CustomSystemClassLoader BaseLoggerFinder BaseLoggerBridgeTest * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerBridgeTest NOSECURITY - * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerBridgeTest NOPERMISSIONS - * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerBridgeTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerBridgeTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerBridgeTest WITHPERMISSIONS * @author danielfuchs */ public class BaseLoggerBridgeTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/BasePlatformLoggerTest/BasePlatformLoggerTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/BasePlatformLoggerTest/BasePlatformLoggerTest.java index 9e6dc7a4a7924..8e98e5ce3c7e6 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/BasePlatformLoggerTest/BasePlatformLoggerTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/BasePlatformLoggerTest/BasePlatformLoggerTest.java @@ -57,8 +57,8 @@ * @modules java.base/sun.util.logging * @build CustomSystemClassLoader BaseLoggerFinder BasePlatformLoggerTest * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader BasePlatformLoggerTest NOSECURITY - * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader BasePlatformLoggerTest NOPERMISSIONS - * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader BasePlatformLoggerTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BasePlatformLoggerTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BasePlatformLoggerTest WITHPERMISSIONS * @author danielfuchs */ public class BasePlatformLoggerTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/BootstrapLogger/BootstrapLoggerTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/BootstrapLogger/BootstrapLoggerTest.java index e7a90c7466f92..3ddf32f12df09 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/BootstrapLogger/BootstrapLoggerTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/BootstrapLogger/BootstrapLoggerTest.java @@ -57,8 +57,8 @@ Tests the behavior of bootstrap loggers (and SimpleConsoleLoggers * java.logging * @build BootstrapLoggerUtils LogStream * @run main/othervm BootstrapLoggerTest NO_SECURITY - * @run main/othervm BootstrapLoggerTest SECURE - * @run main/othervm/timeout=120 BootstrapLoggerTest SECURE_AND_WAIT + * @run main/othervm -Djava.security.manager=allow BootstrapLoggerTest SECURE + * @run main/othervm/timeout=120 -Djava.security.manager=allow BootstrapLoggerTest SECURE_AND_WAIT */ public class BootstrapLoggerTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/LoggerBridgeTest/LoggerBridgeTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/LoggerBridgeTest/LoggerBridgeTest.java index c3f5d7e2062f1..541ded5bddfe1 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/LoggerBridgeTest/LoggerBridgeTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/LoggerBridgeTest/LoggerBridgeTest.java @@ -60,8 +60,8 @@ * java.logging * @build CustomSystemClassLoader LogProducerFinder LoggerBridgeTest * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader LoggerBridgeTest NOSECURITY - * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader LoggerBridgeTest NOPERMISSIONS - * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader LoggerBridgeTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader LoggerBridgeTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader LoggerBridgeTest WITHPERMISSIONS * @author danielfuchs */ public class LoggerBridgeTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/LoggerFinderLoaderTest/LoggerFinderLoaderTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/LoggerFinderLoaderTest/LoggerFinderLoaderTest.java index c6ef5c9795397..c7db9d746e305 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/LoggerFinderLoaderTest/LoggerFinderLoaderTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/LoggerFinderLoaderTest/LoggerFinderLoaderTest.java @@ -66,32 +66,32 @@ * @build AccessSystemLogger LoggerFinderLoaderTest CustomSystemClassLoader BaseLoggerFinder BaseLoggerFinder2 * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest WITHPERMISSIONS * @author danielfuchs */ public class LoggerFinderLoaderTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java index ff4f980216f7e..01d6233af6d96 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java @@ -60,8 +60,8 @@ * java.logging * @build CustomSystemClassLoader LogProducerFinder PlatformLoggerBridgeTest * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader PlatformLoggerBridgeTest NOSECURITY - * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader PlatformLoggerBridgeTest NOPERMISSIONS - * @run main/othervm -Djava.system.class.loader=CustomSystemClassLoader PlatformLoggerBridgeTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader PlatformLoggerBridgeTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader PlatformLoggerBridgeTest WITHPERMISSIONS * @author danielfuchs */ public class PlatformLoggerBridgeTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/jdk/DefaultLoggerBridgeTest/DefaultLoggerBridgeTest.java b/test/jdk/java/lang/System/LoggerFinder/jdk/DefaultLoggerBridgeTest/DefaultLoggerBridgeTest.java index 153a63bbf5090..b051931a5531b 100644 --- a/test/jdk/java/lang/System/LoggerFinder/jdk/DefaultLoggerBridgeTest/DefaultLoggerBridgeTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/jdk/DefaultLoggerBridgeTest/DefaultLoggerBridgeTest.java @@ -59,8 +59,8 @@ * java.base/jdk.internal.logger * java.logging/sun.util.logging.internal * @run main/othervm DefaultLoggerBridgeTest NOSECURITY - * @run main/othervm DefaultLoggerBridgeTest NOPERMISSIONS - * @run main/othervm DefaultLoggerBridgeTest WITHPERMISSIONS + * @run main/othervm -Djava.security.manager=allow DefaultLoggerBridgeTest NOPERMISSIONS + * @run main/othervm -Djava.security.manager=allow DefaultLoggerBridgeTest WITHPERMISSIONS * @author danielfuchs */ public class DefaultLoggerBridgeTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/jdk/DefaultPlatformLoggerTest/DefaultPlatformLoggerTest.java b/test/jdk/java/lang/System/LoggerFinder/jdk/DefaultPlatformLoggerTest/DefaultPlatformLoggerTest.java index c7f8cb44e688c..91a0324f11ebc 100644 --- a/test/jdk/java/lang/System/LoggerFinder/jdk/DefaultPlatformLoggerTest/DefaultPlatformLoggerTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/jdk/DefaultPlatformLoggerTest/DefaultPlatformLoggerTest.java @@ -51,7 +51,7 @@ * @bug 8140364 * @summary Tests all PlatformLogger methods with the default LoggerFinder JUL backend. * @modules java.base/sun.util.logging java.logging/sun.util.logging.internal - * @run main/othervm DefaultPlatformLoggerTest + * @run main/othervm -Djava.security.manager=allow DefaultPlatformLoggerTest * @author danielfuchs */ public class DefaultPlatformLoggerTest { diff --git a/test/jdk/java/lang/annotation/ParameterAnnotations.java b/test/jdk/java/lang/annotation/ParameterAnnotations.java index 11211c9460b71..b5c657629cb0e 100644 --- a/test/jdk/java/lang/annotation/ParameterAnnotations.java +++ b/test/jdk/java/lang/annotation/ParameterAnnotations.java @@ -27,7 +27,7 @@ * @summary Check properties of Annotations returned from * getParameterAnnotations, including freedom from security * exceptions. - * @run main/othervm ParameterAnnotations + * @run main/othervm -Djava.security.manager=allow ParameterAnnotations * @author Martin Buchholz */ diff --git a/test/jdk/java/lang/annotation/repeatingAnnotations/CustomRepeatingWithSecurityManager.java b/test/jdk/java/lang/annotation/repeatingAnnotations/CustomRepeatingWithSecurityManager.java index bb85179471f77..c0663850646fb 100644 --- a/test/jdk/java/lang/annotation/repeatingAnnotations/CustomRepeatingWithSecurityManager.java +++ b/test/jdk/java/lang/annotation/repeatingAnnotations/CustomRepeatingWithSecurityManager.java @@ -29,7 +29,7 @@ * @library /test/lib * @build jdk.test.lib.Asserts * @run main CustomRepeatingWithSecurityManager - * @run main/othervm CustomRepeatingWithSecurityManager "withSM" + * @run main/othervm -Djava.security.manager=allow CustomRepeatingWithSecurityManager "withSM" */ import java.lang.annotation.*; diff --git a/test/jdk/java/lang/annotation/repeatingAnnotations/RepeatingWithSecurityManager.java b/test/jdk/java/lang/annotation/repeatingAnnotations/RepeatingWithSecurityManager.java index 9571d9e8cc2d7..3e4305dd4a7ea 100644 --- a/test/jdk/java/lang/annotation/repeatingAnnotations/RepeatingWithSecurityManager.java +++ b/test/jdk/java/lang/annotation/repeatingAnnotations/RepeatingWithSecurityManager.java @@ -29,7 +29,7 @@ * @library /test/lib * @build jdk.test.lib.Asserts * @run main RepeatingWithSecurityManager - * @run main/othervm RepeatingWithSecurityManager "withSM" + * @run main/othervm -Djava.security.manager=allow RepeatingWithSecurityManager "withSM" */ import java.lang.annotation.*; diff --git a/test/jdk/java/lang/invoke/InvokeDynamicPrintArgs.java b/test/jdk/java/lang/invoke/InvokeDynamicPrintArgs.java index d20c467eeac7f..76c24a99cdcc9 100644 --- a/test/jdk/java/lang/invoke/InvokeDynamicPrintArgs.java +++ b/test/jdk/java/lang/invoke/InvokeDynamicPrintArgs.java @@ -32,6 +32,7 @@ * --expand-properties --classpath ${test.classes} * --java test.java.lang.invoke.InvokeDynamicPrintArgs --check-output * @run main/othervm + * -Djava.security.manager=allow * indify.Indify * --expand-properties --classpath ${test.classes} * --java test.java.lang.invoke.InvokeDynamicPrintArgs --security-manager diff --git a/test/jdk/java/lang/invoke/MethodHandleConstants.java b/test/jdk/java/lang/invoke/MethodHandleConstants.java index cf563aab82eb1..db63191545547 100644 --- a/test/jdk/java/lang/invoke/MethodHandleConstants.java +++ b/test/jdk/java/lang/invoke/MethodHandleConstants.java @@ -32,6 +32,7 @@ * --expand-properties --classpath ${test.classes} * --java test.java.lang.invoke.MethodHandleConstants --check-output * @run main/othervm + * -Djava.security.manager=allow * indify.Indify * --expand-properties --classpath ${test.classes} * --java test.java.lang.invoke.MethodHandleConstants --security-manager diff --git a/test/jdk/java/lang/invoke/MethodTypeSecurityManager.java b/test/jdk/java/lang/invoke/MethodTypeSecurityManager.java index 6f0bf9db1a86d..5096e9c79676b 100644 --- a/test/jdk/java/lang/invoke/MethodTypeSecurityManager.java +++ b/test/jdk/java/lang/invoke/MethodTypeSecurityManager.java @@ -26,7 +26,7 @@ /* @test * @bug 8229785 * @summary Test MethodType.fromMethodDescriptorString with security manager - * @run main/othervm test.java.lang.invoke.MethodTypeSecurityManager + * @run main/othervm -Djava.security.manager=allow test.java.lang.invoke.MethodTypeSecurityManager * @run main/othervm/policy=getclassloader.policy test.java.lang.invoke.MethodTypeSecurityManager access */ diff --git a/test/jdk/java/lang/invoke/TestPrivateMember.java b/test/jdk/java/lang/invoke/TestPrivateMember.java index cf710c0a4f640..3f4da56864164 100644 --- a/test/jdk/java/lang/invoke/TestPrivateMember.java +++ b/test/jdk/java/lang/invoke/TestPrivateMember.java @@ -30,7 +30,7 @@ * @bug 8007035 * @summary Test MethodHandle of a private member * - * @run main TestPrivateMember + * @run main/othervm -Djava.security.manager=allow TestPrivateMember */ public class TestPrivateMember { diff --git a/test/jdk/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java index 83024e58c33d6..d33b1330b83a3 100644 --- a/test/jdk/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java +++ b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java @@ -29,7 +29,7 @@ * @modules jdk.compiler * jdk.zipfs * @compile -XDignore.symbol.file LambdaAccessControlDoPrivilegedTest.java LUtils.java - * @run main/othervm LambdaAccessControlDoPrivilegedTest + * @run main/othervm -Djava.security.manager=allow LambdaAccessControlDoPrivilegedTest */ import java.io.File; import java.util.ArrayList; @@ -76,6 +76,7 @@ public static void main(String... args) { doprivJava.delete(); doprivClass.delete(); tr = doExec(JAVA_CMD.getAbsolutePath(), + "-Djava.security.manager=allow", "-Xbootclasspath/a:foo.jar", "-cp", ".", "Bar"); tr.assertZero("testDoPrivileged fails"); diff --git a/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java index 6435944e7e87d..2ab048368980e 100644 --- a/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java +++ b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java @@ -28,7 +28,7 @@ * @modules jdk.compiler * @compile -XDignore.symbol.file LambdaAccessControlTest.java LUtils.java * - * @run main/othervm LambdaAccessControlTest + * @run main/othervm -Djava.security.manager=allow LambdaAccessControlTest */ public class LambdaAccessControlTest extends LUtils { diff --git a/test/jdk/java/lang/invoke/lambda/LogGeneratedClassesTest.java b/test/jdk/java/lang/invoke/lambda/LogGeneratedClassesTest.java index 047c128e9d591..ae15cd187b059 100644 --- a/test/jdk/java/lang/invoke/lambda/LogGeneratedClassesTest.java +++ b/test/jdk/java/lang/invoke/lambda/LogGeneratedClassesTest.java @@ -115,6 +115,7 @@ public void cleanup() throws IOException { public void testNotLogging() { TestResult tr = doExec(JAVA_CMD.getAbsolutePath(), "-cp", ".", + "-Djava.security.manager=allow", "com.example.TestLambda"); tr.assertZero("Should still return 0"); } @@ -124,6 +125,7 @@ public void testLogging() throws IOException { assertTrue(Files.exists(Paths.get("dump"))); TestResult tr = doExec(JAVA_CMD.getAbsolutePath(), "-cp", ".", + "-Djava.security.manager=allow", "-Djdk.internal.lambda.dumpProxyClasses=dump", "com.example.TestLambda"); // 2 our own class files. We don't care about the others @@ -141,6 +143,7 @@ public void testDumpDirNotExist() throws IOException { assertFalse(Files.exists(Paths.get("notExist"))); TestResult tr = doExec(JAVA_CMD.getAbsolutePath(), "-cp", ".", + "-Djava.security.manager=allow", "-Djdk.internal.lambda.dumpProxyClasses=notExist", "com.example.TestLambda"); assertEquals(tr.testOutput.stream() @@ -156,6 +159,7 @@ public void testDumpDirIsFile() throws IOException { assertTrue(Files.isRegularFile(Paths.get("file"))); TestResult tr = doExec(JAVA_CMD.getAbsolutePath(), "-cp", ".", + "-Djava.security.manager=allow", "-Djdk.internal.lambda.dumpProxyClasses=file", "com.example.TestLambda"); assertEquals(tr.testOutput.stream() @@ -214,6 +218,7 @@ public void testDumpDirNotWritable() throws IOException { TestResult tr = doExec(JAVA_CMD.getAbsolutePath(), "-cp", ".", + "-Djava.security.manager=allow", "-Djdk.internal.lambda.dumpProxyClasses=readOnly", "com.example.TestLambda"); assertEquals(tr.testOutput.stream() @@ -232,6 +237,7 @@ public void testLoggingException() throws IOException { assertTrue(Files.exists(Paths.get("dumpLong"))); TestResult tr = doExec(JAVA_CMD.getAbsolutePath(), "-cp", ".", + "-Djava.security.manager=allow", "-Djdk.internal.lambda.dumpProxyClasses=dumpLong", longFQCN); assertEquals(tr.testOutput.stream() diff --git a/test/jdk/java/lang/module/ModuleFinderWithSecurityManager.java b/test/jdk/java/lang/module/ModuleFinderWithSecurityManager.java index 0fe6a0b646787..2a0d60ca20d4a 100644 --- a/test/jdk/java/lang/module/ModuleFinderWithSecurityManager.java +++ b/test/jdk/java/lang/module/ModuleFinderWithSecurityManager.java @@ -23,8 +23,8 @@ /** * @test - * @run main/othervm ModuleFinderWithSecurityManager allow - * @run main/othervm ModuleFinderWithSecurityManager deny + * @run main/othervm -Djava.security.manager=allow ModuleFinderWithSecurityManager allow + * @run main/othervm -Djava.security.manager=allow ModuleFinderWithSecurityManager deny * @summary Basic test for ModuleFinder.ofSystem() with security manager */ diff --git a/test/jdk/java/lang/reflect/Nestmates/TestSecurityManagerChecks.java b/test/jdk/java/lang/reflect/Nestmates/TestSecurityManagerChecks.java index 1cf5fa897d5ca..7a41272a25f10 100644 --- a/test/jdk/java/lang/reflect/Nestmates/TestSecurityManagerChecks.java +++ b/test/jdk/java/lang/reflect/Nestmates/TestSecurityManagerChecks.java @@ -29,7 +29,7 @@ * @library /test/lib * @build TestSecurityManagerChecks testPkg.Host testPkg.Singleton * @run driver jdk.test.lib.helpers.ClassFileInstaller testPkg.Host testPkg.Host$Member testPkg.Singleton - * @run main/othervm -Xbootclasspath/a:. TestSecurityManagerChecks + * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:. TestSecurityManagerChecks */ // ClassFileInstaller copies the testPkg files into the "current" directory diff --git a/test/jdk/java/lang/reflect/Proxy/nonPublicProxy/NonPublicProxyClass.java b/test/jdk/java/lang/reflect/Proxy/nonPublicProxy/NonPublicProxyClass.java index 209ba813a1ee2..e9782854828a1 100644 --- a/test/jdk/java/lang/reflect/Proxy/nonPublicProxy/NonPublicProxyClass.java +++ b/test/jdk/java/lang/reflect/Proxy/nonPublicProxy/NonPublicProxyClass.java @@ -43,8 +43,8 @@ * @summary Test proxy classes that implement non-public interface * * @build p.Foo - * @run main/othervm NonPublicProxyClass grant - * @run main/othervm NonPublicProxyClass deny + * @run main/othervm -Djava.security.manager=allow NonPublicProxyClass grant + * @run main/othervm -Djava.security.manager=allow NonPublicProxyClass deny * @run main/othervm NonPublicProxyClass */ public class NonPublicProxyClass { diff --git a/test/jdk/java/lang/reflect/Proxy/nonPublicProxy/SimpleProxy.java b/test/jdk/java/lang/reflect/Proxy/nonPublicProxy/SimpleProxy.java index 2d4554fd77dfa..a2c6197080d17 100644 --- a/test/jdk/java/lang/reflect/Proxy/nonPublicProxy/SimpleProxy.java +++ b/test/jdk/java/lang/reflect/Proxy/nonPublicProxy/SimpleProxy.java @@ -31,7 +31,7 @@ * @summary Test making a proxy instance that implements a non-public * interface with and without security manager installed * @build p.Foo p.Bar - * @run main SimpleProxy + * @run main/othervm -Djava.security.manager=allow SimpleProxy */ public class SimpleProxy { public static void main(String[] args) throws Exception { diff --git a/test/jdk/java/lang/reflect/sealed_classes/TestSecurityManagerChecks.java b/test/jdk/java/lang/reflect/sealed_classes/TestSecurityManagerChecks.java index 43ffc520be101..0b9508702d0fc 100644 --- a/test/jdk/java/lang/reflect/sealed_classes/TestSecurityManagerChecks.java +++ b/test/jdk/java/lang/reflect/sealed_classes/TestSecurityManagerChecks.java @@ -28,8 +28,8 @@ * @library /test/lib * @modules java.compiler * @build jdk.test.lib.compiler.CompilerUtils jdk.test.lib.compiler.ModuleInfoMaker TestSecurityManagerChecks - * @run main/othervm --enable-preview TestSecurityManagerChecks named - * @run main/othervm --enable-preview TestSecurityManagerChecks unnamed + * @run main/othervm -Djava.security.manager=allow --enable-preview TestSecurityManagerChecks named + * @run main/othervm -Djava.security.manager=allow --enable-preview TestSecurityManagerChecks unnamed */ import java.io.IOException; diff --git a/test/jdk/java/sql/testng/test/sql/othervm/DriverManagerPermissionsTests.java b/test/jdk/java/sql/permissionTests/DriverManagerPermissionsTests.java similarity index 93% rename from test/jdk/java/sql/testng/test/sql/othervm/DriverManagerPermissionsTests.java rename to test/jdk/java/sql/permissionTests/DriverManagerPermissionsTests.java index 0465e9ae3d248..756af982ba710 100644 --- a/test/jdk/java/sql/testng/test/sql/othervm/DriverManagerPermissionsTests.java +++ b/test/jdk/java/sql/permissionTests/DriverManagerPermissionsTests.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -20,12 +20,7 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -package test.sql.othervm; -import java.security.AccessControlException; -import java.security.Policy; -import java.sql.DriverManager; -import java.sql.SQLException; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; @@ -33,6 +28,18 @@ import util.StubDriver; import util.TestPolicy; +import java.security.AccessControlException; +import java.security.Policy; +import java.sql.DriverManager; +import java.sql.SQLException; + +/* + * @test + * @library /java/sql/testng + * @run testng/othervm -Djava.security.manager=allow DriverManagerPermissionsTests + * @summary Tests that a JDBC Driver that is a module can be loaded + * via the service-provider loading mechanism. + */ public class DriverManagerPermissionsTests extends BaseTest { private static Policy policy; diff --git a/test/jdk/java/util/Properties/LoadAndStoreXML.java b/test/jdk/java/util/Properties/LoadAndStoreXML.java index 2fcf006045430..943983a56096b 100644 --- a/test/jdk/java/util/Properties/LoadAndStoreXML.java +++ b/test/jdk/java/util/Properties/LoadAndStoreXML.java @@ -25,6 +25,7 @@ * @test * @bug 8000354 8000685 8004371 8043119 * @summary Basic test of storeToXML and loadToXML + * @run main/othervm -Djava.security.manager=allow LoadAndStoreXML */ import java.io.ByteArrayInputStream; diff --git a/test/jdk/java/util/ResourceBundle/Bug6359330.java b/test/jdk/java/util/ResourceBundle/Bug6359330.java index 8dd31ad0cb5ff..0fedadfcf3b9a 100644 --- a/test/jdk/java/util/ResourceBundle/Bug6359330.java +++ b/test/jdk/java/util/ResourceBundle/Bug6359330.java @@ -27,7 +27,7 @@ * with a security manager when instantialing RBClassLoader (internal * classloader). * @modules java.xml - * @run main/othervm Bug6359330 + * @run main/othervm -Djava.security.manager=allow Bug6359330 */ import javax.xml.parsers.SAXParser; diff --git a/test/jdk/java/util/ResourceBundle/modules/security/TestPermission.java b/test/jdk/java/util/ResourceBundle/modules/security/TestPermission.java index e85fd7d193374..5a5755146bc8d 100644 --- a/test/jdk/java/util/ResourceBundle/modules/security/TestPermission.java +++ b/test/jdk/java/util/ResourceBundle/modules/security/TestPermission.java @@ -71,6 +71,7 @@ public void compileAll() throws Exception { public void runTest() throws Exception { int exitValue = executeTestJava("--module-path", MODS_DIR.toString(), "--add-modules", "m1", + "-Djava.security.manager=allow", "-m", "test/jdk.test.Main") .outputTo(System.out) .errorTo(System.out) diff --git a/test/jdk/java/util/ServiceLoader/security/SecurityTest.java b/test/jdk/java/util/ServiceLoader/security/SecurityTest.java index 5a6803552772f..e959e3efa2a1b 100644 --- a/test/jdk/java/util/ServiceLoader/security/SecurityTest.java +++ b/test/jdk/java/util/ServiceLoader/security/SecurityTest.java @@ -24,6 +24,6 @@ /** * @test * @build test/* - * @run testng/othervm test/p.Tests + * @run testng/othervm -Djava.security.manager=allow test/p.Tests * @summary Tests to exercise ServiceLoader with a security manager */ diff --git a/test/jdk/java/util/concurrent/Executors/PrivilegedCallables.java b/test/jdk/java/util/concurrent/Executors/PrivilegedCallables.java index 3dd4c11ded589..fe4c980f67369 100644 --- a/test/jdk/java/util/concurrent/Executors/PrivilegedCallables.java +++ b/test/jdk/java/util/concurrent/Executors/PrivilegedCallables.java @@ -25,7 +25,7 @@ * @test * @bug 6552961 6558429 * @summary Test privilegedCallable, privilegedCallableUsingCurrentClassLoader - * @run main/othervm PrivilegedCallables + * @run main/othervm -Djava.security.manager=allow PrivilegedCallables * @author Martin Buchholz */ diff --git a/test/jdk/java/util/concurrent/ThreadPoolExecutor/ConfigChanges.java b/test/jdk/java/util/concurrent/ThreadPoolExecutor/ConfigChanges.java index 73969d4672085..73338770f288f 100644 --- a/test/jdk/java/util/concurrent/ThreadPoolExecutor/ConfigChanges.java +++ b/test/jdk/java/util/concurrent/ThreadPoolExecutor/ConfigChanges.java @@ -27,7 +27,7 @@ * @summary Test proper handling of pool state changes * @library /test/lib * @build jdk.test.lib.RandomFactory - * @run main/othervm ConfigChanges + * @run main/othervm -Djava.security.manager=allow ConfigChanges * @key randomness * @author Martin Buchholz */ diff --git a/test/jdk/java/util/concurrent/ThreadPoolExecutor/ThrowingTasks.java b/test/jdk/java/util/concurrent/ThreadPoolExecutor/ThrowingTasks.java index f7a160741beda..db2781f94eb3a 100644 --- a/test/jdk/java/util/concurrent/ThreadPoolExecutor/ThrowingTasks.java +++ b/test/jdk/java/util/concurrent/ThreadPoolExecutor/ThrowingTasks.java @@ -26,6 +26,7 @@ * @bug 6450200 6450205 6450207 6450211 * @summary Test proper handling of tasks that terminate abruptly * @author Martin Buchholz + * @run main/othervm -Djava.security.manager=allow ThrowingTasks */ import java.security.Permission; diff --git a/test/jdk/java/util/concurrent/atomic/AtomicUpdaters.java b/test/jdk/java/util/concurrent/atomic/AtomicUpdaters.java index bedd74e10c06b..c02f2cdcaab86 100644 --- a/test/jdk/java/util/concurrent/atomic/AtomicUpdaters.java +++ b/test/jdk/java/util/concurrent/atomic/AtomicUpdaters.java @@ -26,7 +26,7 @@ * @bug 7103570 8189291 * @author David Holmes * @run main/othervm AtomicUpdaters - * @run main/othervm AtomicUpdaters UseSM + * @run main/othervm -Djava.security.manager=allow AtomicUpdaters UseSM * @summary Checks the (in)ability to create field updaters for differently * accessible fields in different locations with/without a security * manager diff --git a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java index 1a5904832f833..a2eb2b2e2a070 100644 --- a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java +++ b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java @@ -41,19 +41,19 @@ * while others also test implementation details. * @build * * @modules java.management - * @run junit/othervm/timeout=1000 JSR166TestCase - * @run junit/othervm/timeout=1000 + * @run junit/othervm/timeout=1000 -Djava.security.manager=allow JSR166TestCase + * @run junit/othervm/timeout=1000 -Djava.security.manager=allow * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true * JSR166TestCase - * @run junit/othervm/timeout=1000 + * @run junit/othervm/timeout=1000 -Djava.security.manager=allow * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true * -Djava.util.concurrent.ForkJoinPool.common.parallelism=0 * JSR166TestCase - * @run junit/othervm/timeout=1000 + * @run junit/othervm/timeout=1000 -Djava.security.manager=allow * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true @@ -61,6 +61,7 @@ * -Djava.util.secureRandomSeed=true * JSR166TestCase * @run junit/othervm/timeout=1000/policy=tck.policy + * -Djava.security.manager=allow * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true diff --git a/test/jdk/java/util/logging/AnonymousLogger/TestAnonymousLogger.java b/test/jdk/java/util/logging/AnonymousLogger/TestAnonymousLogger.java index 8d4e528fd3300..6bc4f1ad89597 100644 --- a/test/jdk/java/util/logging/AnonymousLogger/TestAnonymousLogger.java +++ b/test/jdk/java/util/logging/AnonymousLogger/TestAnonymousLogger.java @@ -39,7 +39,7 @@ * @summary checks that anonymous logger setters work as expected when a * security manager is set, and checks that getters return expected * values. - * @run main/othervm TestAnonymousLogger + * @run main/othervm -Djava.security.manager=allow TestAnonymousLogger */ public class TestAnonymousLogger { diff --git a/test/jdk/java/util/logging/FileHandlerLongLimit.java b/test/jdk/java/util/logging/FileHandlerLongLimit.java index 169732d2663dd..0cd836508a6f5 100644 --- a/test/jdk/java/util/logging/FileHandlerLongLimit.java +++ b/test/jdk/java/util/logging/FileHandlerLongLimit.java @@ -54,7 +54,7 @@ * @summary tests that FileHandler can accept a long limit. * @modules java.logging/java.util.logging:open * @run main/othervm FileHandlerLongLimit UNSECURE - * @run main/othervm FileHandlerLongLimit SECURE + * @run main/othervm -Djava.security.manager=allow FileHandlerLongLimit SECURE * @author danielfuchs * @key randomness */ diff --git a/test/jdk/java/util/logging/FileHandlerPath.java b/test/jdk/java/util/logging/FileHandlerPath.java index 0d97dbf573e1a..f5466097f3f1c 100644 --- a/test/jdk/java/util/logging/FileHandlerPath.java +++ b/test/jdk/java/util/logging/FileHandlerPath.java @@ -54,7 +54,7 @@ * @summary tests that using a simple (non composite) pattern does not lead * to NPE when the lock file already exists. * @run main/othervm FileHandlerPath UNSECURE - * @run main/othervm FileHandlerPath SECURE + * @run main/othervm -Djava.security.manager=allow FileHandlerPath SECURE * @author danielfuchs * @key randomness */ diff --git a/test/jdk/java/util/logging/FileHandlerPatternExceptions.java b/test/jdk/java/util/logging/FileHandlerPatternExceptions.java index e97141624129b..7fa901d403717 100644 --- a/test/jdk/java/util/logging/FileHandlerPatternExceptions.java +++ b/test/jdk/java/util/logging/FileHandlerPatternExceptions.java @@ -47,7 +47,7 @@ * @bug 8025690 * @summary tests that an empty or null pattern always result in an exception. * @run main/othervm FileHandlerPatternExceptions UNSECURE - * @run main/othervm FileHandlerPatternExceptions SECURE + * @run main/othervm -Djava.security.manager=allow FileHandlerPatternExceptions SECURE * @author danielfuchs * @key randomness */ diff --git a/test/jdk/java/util/logging/HandlersConfigTest.java b/test/jdk/java/util/logging/HandlersConfigTest.java index 705c451db9fd3..5a6e24e265a9e 100644 --- a/test/jdk/java/util/logging/HandlersConfigTest.java +++ b/test/jdk/java/util/logging/HandlersConfigTest.java @@ -29,8 +29,8 @@ * as specified in javadoc and that no special * logging permission is required for instantiating them. * @modules java.logging/java.util.logging:open - * @run main/othervm HandlersConfigTest default - * @run main/othervm HandlersConfigTest configured + * @run main/othervm -Djava.security.manager=allow HandlersConfigTest default + * @run main/othervm -Djava.security.manager=allow HandlersConfigTest configured */ import java.io.IOException; diff --git a/test/jdk/java/util/logging/LogManager/Configuration/ParentLoggerWithHandlerGC.java b/test/jdk/java/util/logging/LogManager/Configuration/ParentLoggerWithHandlerGC.java index b99b6a96ac554..f7356cde64b6f 100644 --- a/test/jdk/java/util/logging/LogManager/Configuration/ParentLoggerWithHandlerGC.java +++ b/test/jdk/java/util/logging/LogManager/Configuration/ParentLoggerWithHandlerGC.java @@ -57,7 +57,7 @@ * @summary tests that FileHandlers configured on abstract nodes in logging.properties * will be closed by reset(). * @run main/othervm ParentLoggerWithHandlerGC UNSECURE - * @run main/othervm ParentLoggerWithHandlerGC SECURE + * @run main/othervm -Djava.security.manager=allow ParentLoggerWithHandlerGC SECURE * @author danielfuchs * @key randomness */ diff --git a/test/jdk/java/util/logging/LogManager/Configuration/TestConfigurationLock.java b/test/jdk/java/util/logging/LogManager/Configuration/TestConfigurationLock.java index 04ef1f2788d64..455febb7a64a9 100644 --- a/test/jdk/java/util/logging/LogManager/Configuration/TestConfigurationLock.java +++ b/test/jdk/java/util/logging/LogManager/Configuration/TestConfigurationLock.java @@ -48,7 +48,7 @@ * todo: add at randomness * @modules java.logging * java.management - * @run main/othervm TestConfigurationLock + * @run main/othervm -Djava.security.manager=allow TestConfigurationLock * @author danielfuchs */ // This test is a best effort to try & detect issues. The test itself will run diff --git a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/HandlersOnComplexResetUpdate.java b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/HandlersOnComplexResetUpdate.java index ad9993ba94436..f0796bed901d1 100644 --- a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/HandlersOnComplexResetUpdate.java +++ b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/HandlersOnComplexResetUpdate.java @@ -59,7 +59,7 @@ * suddenly appears in the hierarchy between a child logger and the * root logger. * @run main/othervm HandlersOnComplexResetUpdate UNSECURE - * @run main/othervm HandlersOnComplexResetUpdate SECURE + * @run main/othervm -Djava.security.manager=allow HandlersOnComplexResetUpdate SECURE * @author danielfuchs */ public class HandlersOnComplexResetUpdate { diff --git a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/HandlersOnComplexUpdate.java b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/HandlersOnComplexUpdate.java index 079d3a44f1dad..a8d3240b97680 100644 --- a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/HandlersOnComplexUpdate.java +++ b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/HandlersOnComplexUpdate.java @@ -59,7 +59,7 @@ * suddenly appears in the hierarchy between a child logger and the * root logger. * @run main/othervm HandlersOnComplexUpdate UNSECURE - * @run main/othervm HandlersOnComplexUpdate SECURE + * @run main/othervm -Djava.security.manager=allow HandlersOnComplexUpdate SECURE * @author danielfuchs */ public class HandlersOnComplexUpdate { diff --git a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigWithInputStreamTest.java b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigWithInputStreamTest.java index c8d59c1593e1a..8c8bc35c24a71 100644 --- a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigWithInputStreamTest.java +++ b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigWithInputStreamTest.java @@ -53,7 +53,7 @@ * @bug 8033661 8189291 * @summary tests LogManager.updateConfiguration(InputStream, Function) method * @run main/othervm SimpleUpdateConfigWithInputStreamTest UNSECURE - * @run main/othervm SimpleUpdateConfigWithInputStreamTest SECURE + * @run main/othervm -Djava.security.manager=allow SimpleUpdateConfigWithInputStreamTest SECURE * @author danielfuchs */ public class SimpleUpdateConfigWithInputStreamTest { diff --git a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigurationTest.java b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigurationTest.java index ecf7d34880c61..0a19d76991738 100644 --- a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigurationTest.java +++ b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/SimpleUpdateConfigurationTest.java @@ -56,7 +56,7 @@ * @bug 8033661 * @summary tests LogManager.updateConfiguration(Function) method * @run main/othervm SimpleUpdateConfigurationTest UNSECURE - * @run main/othervm SimpleUpdateConfigurationTest SECURE + * @run main/othervm -Djava.security.manager=allow SimpleUpdateConfigurationTest SECURE * @author danielfuchs */ public class SimpleUpdateConfigurationTest { diff --git a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/UpdateConfigurationTest.java b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/UpdateConfigurationTest.java index cc01fa084708b..629ff10ee1f50 100644 --- a/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/UpdateConfigurationTest.java +++ b/test/jdk/java/util/logging/LogManager/Configuration/updateConfiguration/UpdateConfigurationTest.java @@ -63,7 +63,7 @@ * @summary tests LogManager.updateConfiguration(bin) * @modules java.logging/java.util.logging:open * @run main/othervm UpdateConfigurationTest UNSECURE - * @run main/othervm UpdateConfigurationTest SECURE + * @run main/othervm -Djava.security.manager=allow UpdateConfigurationTest SECURE * @author danielfuchs */ public class UpdateConfigurationTest { diff --git a/test/jdk/java/util/logging/LogManager/RootLogger/setLevel/TestRootLoggerLevel.java b/test/jdk/java/util/logging/LogManager/RootLogger/setLevel/TestRootLoggerLevel.java index 437c863f2aa45..8f2a0f2cba409 100644 --- a/test/jdk/java/util/logging/LogManager/RootLogger/setLevel/TestRootLoggerLevel.java +++ b/test/jdk/java/util/logging/LogManager/RootLogger/setLevel/TestRootLoggerLevel.java @@ -38,7 +38,7 @@ * @modules java.base/sun.util.logging * java.logging * @build TestRootLoggerLevel - * @run main/othervm -Dtest.security=on TestRootLoggerLevel + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestRootLoggerLevel * @run main/othervm -Dtest.security=off TestRootLoggerLevel * @author danielfuchs */ diff --git a/test/jdk/java/util/logging/Logger/getLogger/TestLogger.java b/test/jdk/java/util/logging/Logger/getLogger/TestLogger.java index cf6abc449dd81..814f453f3d538 100644 --- a/test/jdk/java/util/logging/Logger/getLogger/TestLogger.java +++ b/test/jdk/java/util/logging/Logger/getLogger/TestLogger.java @@ -29,7 +29,7 @@ * @bug 8005899 * @build TestLogger testlogger.MyResource * @run main/othervm TestLogger - * @run main/othervm -Dsecurity=on TestLogger + * @run main/othervm -Djava.security.manager=allow -Dsecurity=on TestLogger **/ public class TestLogger { diff --git a/test/jdk/java/util/logging/Logger/setResourceBundle/TestSetResourceBundle.java b/test/jdk/java/util/logging/Logger/setResourceBundle/TestSetResourceBundle.java index 0dba92132bb18..cf57efe1f8922 100644 --- a/test/jdk/java/util/logging/Logger/setResourceBundle/TestSetResourceBundle.java +++ b/test/jdk/java/util/logging/Logger/setResourceBundle/TestSetResourceBundle.java @@ -43,8 +43,8 @@ * @summary tests Logger.setResourceBundle; * @build TestSetResourceBundle resources.ListBundle resources.ListBundle_fr * @run main/othervm TestSetResourceBundle UNSECURE - * @run main/othervm TestSetResourceBundle PERMISSION - * @run main/othervm TestSetResourceBundle SECURE + * @run main/othervm -Djava.security.manager=allow TestSetResourceBundle PERMISSION + * @run main/othervm -Djava.security.manager=allow TestSetResourceBundle SECURE * @author danielfuchs */ public class TestSetResourceBundle { diff --git a/test/jdk/java/util/logging/RootLogger/RootLevelInConfigFile.java b/test/jdk/java/util/logging/RootLogger/RootLevelInConfigFile.java index 35401f8bdd951..5ffba8250ac8d 100644 --- a/test/jdk/java/util/logging/RootLogger/RootLevelInConfigFile.java +++ b/test/jdk/java/util/logging/RootLogger/RootLevelInConfigFile.java @@ -44,7 +44,7 @@ * configuration file does work. * @modules java.base/jdk.internal.access * java.logging - * @run main/othervm RootLevelInConfigFile + * @run main/othervm -Djava.security.manager=allow RootLevelInConfigFile * * @author danielfuchs */ diff --git a/test/jdk/java/util/logging/SystemLoggerConfigTest.java b/test/jdk/java/util/logging/SystemLoggerConfigTest.java index 501e3124bce63..20fe38248c42d 100644 --- a/test/jdk/java/util/logging/SystemLoggerConfigTest.java +++ b/test/jdk/java/util/logging/SystemLoggerConfigTest.java @@ -50,7 +50,7 @@ * @summary Tests configuration of loggers. * @modules java.logging/sun.util.logging.internal java.base/sun.util.logging * @run main/othervm SystemLoggerConfigTest NOSECURITY - * @run main/othervm SystemLoggerConfigTest WITHSECURITY + * @run main/othervm -Djava.security.manager=allow SystemLoggerConfigTest WITHSECURITY * * @author danielfuchs */ diff --git a/test/jdk/java/util/logging/TestAppletLoggerContext.java b/test/jdk/java/util/logging/TestAppletLoggerContext.java index 6ca2a63de593f..6fbe975b5e433 100644 --- a/test/jdk/java/util/logging/TestAppletLoggerContext.java +++ b/test/jdk/java/util/logging/TestAppletLoggerContext.java @@ -45,25 +45,25 @@ * @modules java.base/jdk.internal.access * java.logging * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingApplet - * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingApplet + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext LoadingApplet * @run main/othervm -Dtest.security=off TestAppletLoggerContext LoadingMain - * @run main/othervm -Dtest.security=on TestAppletLoggerContext LoadingMain + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext LoadingMain * @run main/othervm -Dtest.security=off TestAppletLoggerContext One - * @run main/othervm -Dtest.security=on TestAppletLoggerContext One + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext One * @run main/othervm -Dtest.security=off TestAppletLoggerContext Two - * @run main/othervm -Dtest.security=on TestAppletLoggerContext Two + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext Two * @run main/othervm -Dtest.security=off TestAppletLoggerContext Three - * @run main/othervm -Dtest.security=on TestAppletLoggerContext Three + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext Three * @run main/othervm -Dtest.security=off TestAppletLoggerContext Four - * @run main/othervm -Dtest.security=on TestAppletLoggerContext Four + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext Four * @run main/othervm -Dtest.security=off TestAppletLoggerContext Five - * @run main/othervm -Dtest.security=on TestAppletLoggerContext Five + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext Five * @run main/othervm -Dtest.security=off TestAppletLoggerContext Six - * @run main/othervm -Dtest.security=on TestAppletLoggerContext Six + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext Six * @run main/othervm -Dtest.security=off TestAppletLoggerContext Seven - * @run main/othervm -Dtest.security=on TestAppletLoggerContext Seven + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext Seven * @run main/othervm -Dtest.security=off TestAppletLoggerContext - * @run main/othervm -Dtest.security=on TestAppletLoggerContext + * @run main/othervm -Djava.security.manager=allow -Dtest.security=on TestAppletLoggerContext */ // NOTE: We run in other VM in order to 1. switch security manager and 2. cause diff --git a/test/jdk/java/util/logging/TestConfigurationListeners.java b/test/jdk/java/util/logging/TestConfigurationListeners.java index ccdbdc9d78e7a..b9712b203a379 100644 --- a/test/jdk/java/util/logging/TestConfigurationListeners.java +++ b/test/jdk/java/util/logging/TestConfigurationListeners.java @@ -48,8 +48,8 @@ * LogManager.removeConfigurationListener; * @build TestConfigurationListeners * @run main/othervm TestConfigurationListeners UNSECURE - * @run main/othervm TestConfigurationListeners PERMISSION - * @run main/othervm TestConfigurationListeners SECURE + * @run main/othervm -Djava.security.manager=allow TestConfigurationListeners PERMISSION + * @run main/othervm -Djava.security.manager=allow TestConfigurationListeners SECURE * @author danielfuchs */ public class TestConfigurationListeners { diff --git a/test/jdk/java/util/logging/TestGetLoggerNPE.java b/test/jdk/java/util/logging/TestGetLoggerNPE.java index cde2c458a5f26..bc204e8241cff 100644 --- a/test/jdk/java/util/logging/TestGetLoggerNPE.java +++ b/test/jdk/java/util/logging/TestGetLoggerNPE.java @@ -38,8 +38,8 @@ * @modules java.base/jdk.internal.access * java.logging * @build TestGetLoggerNPE - * @run main/othervm TestGetLoggerNPE getLogger - * @run main/othervm TestGetLoggerNPE getLogManager + * @run main/othervm -Djava.security.manager=allow TestGetLoggerNPE getLogger + * @run main/othervm -Djava.security.manager=allow TestGetLoggerNPE getLogManager */ public class TestGetLoggerNPE { static volatile Throwable thrown = null; diff --git a/test/jdk/java/util/logging/TestLogConfigurationDeadLock.java b/test/jdk/java/util/logging/TestLogConfigurationDeadLock.java index 9679e03f6f59f..3327b88d54b8f 100644 --- a/test/jdk/java/util/logging/TestLogConfigurationDeadLock.java +++ b/test/jdk/java/util/logging/TestLogConfigurationDeadLock.java @@ -40,7 +40,7 @@ * drainLoggerRefQueueBounded / readConfiguration * @modules java.logging * java.management - * @run main/othervm TestLogConfigurationDeadLock + * @run main/othervm -Djava.security.manager=allow TestLogConfigurationDeadLock * @author danielfuchs */ // This test is a best effort to try & detect issues. The test itself will run diff --git a/test/jdk/java/util/logging/TestLogConfigurationDeadLockWithConf.java b/test/jdk/java/util/logging/TestLogConfigurationDeadLockWithConf.java index 5ec160ae807f0..a7d4c67e3499a 100644 --- a/test/jdk/java/util/logging/TestLogConfigurationDeadLockWithConf.java +++ b/test/jdk/java/util/logging/TestLogConfigurationDeadLockWithConf.java @@ -46,7 +46,7 @@ * caused by synchronization issues in Logger and LogManager. * @modules java.logging * java.management - * @run main/othervm TestLogConfigurationDeadLockWithConf + * @run main/othervm -Djava.security.manager=allow TestLogConfigurationDeadLockWithConf * @author danielfuchs * @key randomness */ diff --git a/test/jdk/java/util/logging/TestLoggerBundleSync.java b/test/jdk/java/util/logging/TestLoggerBundleSync.java index 757e4f66a8bec..6374ef4d26145 100644 --- a/test/jdk/java/util/logging/TestLoggerBundleSync.java +++ b/test/jdk/java/util/logging/TestLoggerBundleSync.java @@ -55,7 +55,7 @@ * reproduce intermittent issues can be a good idea. * @modules java.logging * java.management - * @run main/othervm TestLoggerBundleSync + * @run main/othervm -Djava.security.manager=allow TestLoggerBundleSync * @author danielfuchs */ public class TestLoggerBundleSync { diff --git a/test/jdk/java/util/logging/TestLoggingWithMainAppContext.java b/test/jdk/java/util/logging/TestLoggingWithMainAppContext.java index fe42bd4b41e35..c2c3ea8712fe1 100644 --- a/test/jdk/java/util/logging/TestLoggingWithMainAppContext.java +++ b/test/jdk/java/util/logging/TestLoggingWithMainAppContext.java @@ -33,7 +33,7 @@ * VM mode: it would not test the intended behavior. * @modules java.desktop * java.logging - * @run main/othervm TestLoggingWithMainAppContext + * @run main/othervm -Djava.security.manager=allow TestLoggingWithMainAppContext */ public class TestLoggingWithMainAppContext { diff --git a/test/jdk/java/util/logging/TestMainAppContext.java b/test/jdk/java/util/logging/TestMainAppContext.java index bde3ef26430a5..49f371aa32160 100644 --- a/test/jdk/java/util/logging/TestMainAppContext.java +++ b/test/jdk/java/util/logging/TestMainAppContext.java @@ -33,7 +33,7 @@ * @modules java.desktop/sun.awt * java.logging * @build TestMainAppContext - * @run main/othervm TestMainAppContext + * @run main/othervm -Djava.security.manager=allow TestMainAppContext * @author danielfuchs */ public class TestMainAppContext { diff --git a/test/jdk/java/util/spi/ToolProviderTest.java b/test/jdk/java/util/spi/ToolProviderTest.java index 9a337bc6ce287..b47d4c25aa279 100644 --- a/test/jdk/java/util/spi/ToolProviderTest.java +++ b/test/jdk/java/util/spi/ToolProviderTest.java @@ -25,7 +25,7 @@ * @test * @bug 8159855 * @summary test ToolProvider SPI - * @run main/othervm ToolProviderTest + * @run main/othervm -Djava.security.manager=allow ToolProviderTest */ import java.io.IOException; diff --git a/test/jdk/javax/sql/testng/test/rowset/spi/SyncFactoryPermissionsTests.java b/test/jdk/javax/sql/permissionTests/SyncFactoryPermissionsTests.java similarity index 95% rename from test/jdk/javax/sql/testng/test/rowset/spi/SyncFactoryPermissionsTests.java rename to test/jdk/javax/sql/permissionTests/SyncFactoryPermissionsTests.java index 970d678f8db15..6433e3e21c9ca 100644 --- a/test/jdk/javax/sql/testng/test/rowset/spi/SyncFactoryPermissionsTests.java +++ b/test/jdk/javax/sql/permissionTests/SyncFactoryPermissionsTests.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -20,8 +20,6 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ -package test.rowset.spi; - import java.security.AccessControlException; import java.security.Policy; import java.util.logging.Level; @@ -35,7 +33,13 @@ import util.BaseTest; import util.StubContext; import util.TestPolicy; - +/* + * @test + * @library /java/sql/testng + * @library /javax/sql/testng + * @run testng/othervm -Djava.security.manager=allow SyncFactoryPermissionsTests + * @summary Tests SyncFactory permissions. + */ public class SyncFactoryPermissionsTests extends BaseTest { Context ctx; diff --git a/test/jdk/jdk/internal/jrtfs/WithSecurityManager.java b/test/jdk/jdk/internal/jrtfs/WithSecurityManager.java index d982300be2af6..8078fbc495a1d 100644 --- a/test/jdk/jdk/internal/jrtfs/WithSecurityManager.java +++ b/test/jdk/jdk/internal/jrtfs/WithSecurityManager.java @@ -23,8 +23,8 @@ /** * @test - * @run main/othervm WithSecurityManager allow - * @run main/othervm WithSecurityManager deny + * @run main/othervm -Djava.security.manager=allow WithSecurityManager allow + * @run main/othervm -Djava.security.manager=allow WithSecurityManager deny */ import java.net.URI; diff --git a/test/jdk/tools/jlink/SecurityTest.java b/test/jdk/tools/jlink/SecurityTest.java index 7aff0c220c7ed..a42eb4dbc5e30 100644 --- a/test/jdk/tools/jlink/SecurityTest.java +++ b/test/jdk/tools/jlink/SecurityTest.java @@ -26,7 +26,7 @@ * @summary Test JlinkPermission * @author Jean-Francois Denise * @modules jdk.jlink/jdk.tools.jlink.internal - * @run main/othervm SecurityTest + * @run main/othervm -Djava.security.manager=allow SecurityTest */ import java.security.AccessControlException; From c7ae99a2047ea5cc27ed95ed627c9e5bcaa42eca Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:47 -0400 Subject: [PATCH 14/19] test for net --- test/jdk/java/net/Authenticator/GetAuthenticatorTest.java | 2 +- test/jdk/java/net/DatagramSocket/ConnectPortZero.java | 2 +- test/jdk/java/net/DatagramSocket/SendPortZero.java | 4 ++-- test/jdk/java/net/InetAddress/GetLocalHostWithSM.java | 6 +++--- test/jdk/java/net/MulticastSocket/SendPortZero.java | 4 ++-- test/jdk/java/net/NetworkInterface/Equals.java | 2 +- test/jdk/java/net/ServerSocket/TestLocalAddress.java | 2 +- test/jdk/java/net/Socket/UdpSocket.java | 2 +- .../jdk/java/net/SocketPermission/SocketPermissionTest.java | 2 +- test/jdk/java/net/URL/OpenConnection.java | 2 +- test/jdk/java/net/URL/TestIPv6Addresses.java | 4 ++-- test/jdk/java/net/URLPermission/OpenURL.java | 2 +- test/jdk/java/net/URLPermission/URLTest.java | 4 ++-- test/jdk/java/net/URLPermission/nstest/LookupTest.java | 2 +- test/jdk/sun/net/www/protocol/jrt/WithSecurityManager.java | 4 ++-- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/test/jdk/java/net/Authenticator/GetAuthenticatorTest.java b/test/jdk/java/net/Authenticator/GetAuthenticatorTest.java index d36236ba32f2f..9c4c421ba32f8 100644 --- a/test/jdk/java/net/Authenticator/GetAuthenticatorTest.java +++ b/test/jdk/java/net/Authenticator/GetAuthenticatorTest.java @@ -30,7 +30,7 @@ * @test * @bug 8169068 * @summary Basic test for Authenticator.getDefault() - * @run main/othervm GetAuthenticatorTest + * @run main/othervm -Djava.security.manager=allow GetAuthenticatorTest */ public class GetAuthenticatorTest { diff --git a/test/jdk/java/net/DatagramSocket/ConnectPortZero.java b/test/jdk/java/net/DatagramSocket/ConnectPortZero.java index a1488c7961ab7..82544d0b55800 100644 --- a/test/jdk/java/net/DatagramSocket/ConnectPortZero.java +++ b/test/jdk/java/net/DatagramSocket/ConnectPortZero.java @@ -51,7 +51,7 @@ * @bug 8240533 * @summary Check that DatagramSocket, MulticastSocket and DatagramSocketAdaptor * throw expected Exception when connecting to port 0 - * @run testng/othervm ConnectPortZero + * @run testng/othervm -Djava.security.manager=allow ConnectPortZero */ public class ConnectPortZero{ diff --git a/test/jdk/java/net/DatagramSocket/SendPortZero.java b/test/jdk/java/net/DatagramSocket/SendPortZero.java index b66eb60fc9f3e..5c60df3a24414 100644 --- a/test/jdk/java/net/DatagramSocket/SendPortZero.java +++ b/test/jdk/java/net/DatagramSocket/SendPortZero.java @@ -48,8 +48,8 @@ * @bug 8236105 8240533 * @summary Check that DatagramSocket throws expected * Exception when sending a DatagramPacket with port 0 - * @run testng SendPortZero - * @run testng/othervm -Djdk.net.usePlainDatagramSocketImpl SendPortZero + * @run testng/othervm -Djava.security.manager=allow SendPortZero + * @run testng/othervm -Djava.security.manager=allow -Djdk.net.usePlainDatagramSocketImpl SendPortZero */ public class SendPortZero { diff --git a/test/jdk/java/net/InetAddress/GetLocalHostWithSM.java b/test/jdk/java/net/InetAddress/GetLocalHostWithSM.java index 0167edec3286c..2eda5f0494d88 100644 --- a/test/jdk/java/net/InetAddress/GetLocalHostWithSM.java +++ b/test/jdk/java/net/InetAddress/GetLocalHostWithSM.java @@ -26,9 +26,9 @@ * @bug 4531817 8026245 * @library /test/lib * @summary Inet[46]Address.localHost need doPrivileged - * @run main/othervm GetLocalHostWithSM - * @run main/othervm -Djava.net.preferIPv4Stack=true GetLocalHostWithSM - * @run main/othervm -Djava.net.preferIPv6Addresses=true GetLocalHostWithSM + * @run main/othervm -Djava.security.manager=allow GetLocalHostWithSM + * @run main/othervm -Djava.security.manager=allow -Djava.net.preferIPv4Stack=true GetLocalHostWithSM + * @run main/othervm -Djava.security.manager=allow -Djava.net.preferIPv6Addresses=true GetLocalHostWithSM * files needed: GetLocalHostWithSM.java, MyPrincipal.java, and policy.file */ diff --git a/test/jdk/java/net/MulticastSocket/SendPortZero.java b/test/jdk/java/net/MulticastSocket/SendPortZero.java index 335e769d2e5bc..e07743ba9fee2 100644 --- a/test/jdk/java/net/MulticastSocket/SendPortZero.java +++ b/test/jdk/java/net/MulticastSocket/SendPortZero.java @@ -48,8 +48,8 @@ * @bug 8243408 * @summary Check that MulticastSocket throws expected * Exception when sending a DatagramPacket with port 0 - * @run testng SendPortZero - * @run testng/othervm -Djdk.net.usePlainDatagramSocketImpl SendPortZero + * @run testng/othervm -Djava.security.manager=allow SendPortZero + * @run testng/othervm -Djava.security.manager=allow -Djdk.net.usePlainDatagramSocketImpl SendPortZero */ public class SendPortZero { diff --git a/test/jdk/java/net/NetworkInterface/Equals.java b/test/jdk/java/net/NetworkInterface/Equals.java index 8cc81f825a0d8..9e973e71de704 100644 --- a/test/jdk/java/net/NetworkInterface/Equals.java +++ b/test/jdk/java/net/NetworkInterface/Equals.java @@ -23,7 +23,7 @@ /* @test * @bug 7003398 - * @run main/othervm Equals + * @run main/othervm -Djava.security.manager=allow Equals */ import java.io.ByteArrayOutputStream; diff --git a/test/jdk/java/net/ServerSocket/TestLocalAddress.java b/test/jdk/java/net/ServerSocket/TestLocalAddress.java index 70f860146cde1..b87d21c98213e 100644 --- a/test/jdk/java/net/ServerSocket/TestLocalAddress.java +++ b/test/jdk/java/net/ServerSocket/TestLocalAddress.java @@ -45,7 +45,7 @@ * @test * @bug 8224730 * @summary Check local address access with a security manager - * @run testng/othervm TestLocalAddress + * @run testng/othervm -Djava.security.manager=allow TestLocalAddress */ public class TestLocalAddress { diff --git a/test/jdk/java/net/Socket/UdpSocket.java b/test/jdk/java/net/Socket/UdpSocket.java index 5c0b6619b08f8..d36df018b0a2a 100644 --- a/test/jdk/java/net/Socket/UdpSocket.java +++ b/test/jdk/java/net/Socket/UdpSocket.java @@ -23,7 +23,7 @@ /** * @test - * @run testng/othervm -Dsun.net.maxDatagramSockets=32 UdpSocket + * @run testng/othervm -Djava.security.manager=allow -Dsun.net.maxDatagramSockets=32 UdpSocket * @summary Basic test for a Socket to a UDP socket */ diff --git a/test/jdk/java/net/SocketPermission/SocketPermissionTest.java b/test/jdk/java/net/SocketPermission/SocketPermissionTest.java index a787be39c963e..856454092da91 100644 --- a/test/jdk/java/net/SocketPermission/SocketPermissionTest.java +++ b/test/jdk/java/net/SocketPermission/SocketPermissionTest.java @@ -31,7 +31,7 @@ * @library /test/lib * @build jdk.test.lib.NetworkConfiguration * jdk.test.lib.Platform - * @run testng/othervm SocketPermissionTest + * @run testng/othervm -Djava.security.manager=allow SocketPermissionTest */ import java.io.IOException; diff --git a/test/jdk/java/net/URL/OpenConnection.java b/test/jdk/java/net/URL/OpenConnection.java index ca5615510c5ce..31ac42f67ef47 100644 --- a/test/jdk/java/net/URL/OpenConnection.java +++ b/test/jdk/java/net/URL/OpenConnection.java @@ -24,7 +24,7 @@ /* @test * @bug 5086348 * @summary URL.openConnection(Proxy.NO_PROXY) throws NULLPointerException - * @run main/othervm OpenConnection + * @run main/othervm -Djava.security.manager=allow OpenConnection */ import java.io.*; diff --git a/test/jdk/java/net/URL/TestIPv6Addresses.java b/test/jdk/java/net/URL/TestIPv6Addresses.java index 8014d3158b832..69ae5f99fbfdd 100644 --- a/test/jdk/java/net/URL/TestIPv6Addresses.java +++ b/test/jdk/java/net/URL/TestIPv6Addresses.java @@ -23,11 +23,11 @@ /* @test * @bug 4451522 4460484 - * @run main/othervm TestIPv6Addresses + * @run main/othervm -Djava.security.manager=allow TestIPv6Addresses * @summary URI and URL getHost() methods don't comform to RFC 2732 */ -// Run in othervm because the tests sets a SecurityManager +// Run in othervm -Djava.security.manager=allow because the tests sets a SecurityManager import java.net.*; diff --git a/test/jdk/java/net/URLPermission/OpenURL.java b/test/jdk/java/net/URLPermission/OpenURL.java index 19c4c1572d49f..85b5eef1be0a9 100644 --- a/test/jdk/java/net/URLPermission/OpenURL.java +++ b/test/jdk/java/net/URLPermission/OpenURL.java @@ -25,7 +25,7 @@ * @test * @bug 8029354 * @library /test/lib - * @run main/othervm OpenURL + * @run main/othervm -Djava.security.manager=allow OpenURL */ import java.net.*; diff --git a/test/jdk/java/net/URLPermission/URLTest.java b/test/jdk/java/net/URLPermission/URLTest.java index 714cf62bffab1..7013ba83dee4f 100644 --- a/test/jdk/java/net/URLPermission/URLTest.java +++ b/test/jdk/java/net/URLPermission/URLTest.java @@ -28,8 +28,8 @@ * @modules jdk.httpserver * @library /test/lib * @build jdk.test.lib.net.SimpleSSLContext - * @run main/othervm URLTest - * @run main/othervm -Djava.net.preferIPv6Addresses=true URLTest + * @run main/othervm -Djava.security.manager=allow URLTest + * @run main/othervm -Djava.security.manager=allow -Djava.net.preferIPv6Addresses=true URLTest * @summary check URLPermission with Http(s)URLConnection */ diff --git a/test/jdk/java/net/URLPermission/nstest/LookupTest.java b/test/jdk/java/net/URLPermission/nstest/LookupTest.java index 3d7a30463ba93..6885486c499d9 100644 --- a/test/jdk/java/net/URLPermission/nstest/LookupTest.java +++ b/test/jdk/java/net/URLPermission/nstest/LookupTest.java @@ -26,7 +26,7 @@ * @summary A simple smoke test of the HttpURLPermission mechanism, which checks * for either IOException (due to unknown host) or SecurityException * due to lack of permission to connect - * @run main/othervm -Djdk.net.hosts.file=LookupTestHosts LookupTest + * @run main/othervm -Djava.security.manager=allow -Djdk.net.hosts.file=LookupTestHosts LookupTest */ import java.io.BufferedWriter; diff --git a/test/jdk/sun/net/www/protocol/jrt/WithSecurityManager.java b/test/jdk/sun/net/www/protocol/jrt/WithSecurityManager.java index 97f1105fde815..4a00dd206db9d 100644 --- a/test/jdk/sun/net/www/protocol/jrt/WithSecurityManager.java +++ b/test/jdk/sun/net/www/protocol/jrt/WithSecurityManager.java @@ -24,8 +24,8 @@ /** * @test * @summary Test that the jimage protocol handler works with a security manager - * @run main/othervm WithSecurityManager allow - * @run main/othervm WithSecurityManager deny + * @run main/othervm -Djava.security.manager=allow WithSecurityManager allow + * @run main/othervm -Djava.security.manager=allow WithSecurityManager deny */ import java.io.InputStream; From 60ad41ba01cd701ba0f30ee07297eb7132b3bf86 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:48 -0400 Subject: [PATCH 15/19] test for compiler --- test/langtools/ProblemList.txt | 3 +++ .../tools/javac/api/ToolProvider/ToolProviderTest.java | 2 +- test/langtools/tools/javac/processing/6348193/T6348193.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/langtools/ProblemList.txt b/test/langtools/ProblemList.txt index faed5b30d14a0..98e600d1d1ee3 100644 --- a/test/langtools/ProblemList.txt +++ b/test/langtools/ProblemList.txt @@ -50,6 +50,9 @@ tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java 8057687 generic-all emit correct byte code an attributes for type annotations tools/javac/warnings/suppress/TypeAnnotations.java 8057683 generic-all improve ordering of errors with type annotations tools/javac/modules/SourceInSymlinkTest.java 8180263 windows-all fails when run on a subst drive +tools/javac/processing/options/XprintRepeatingAnnotations.java 8265611 generic-all @compile/ref comparison fails when noSecurityManager=true +tools/javac/processing/options/XprintDocComments.java 8265611 generic-all @compile/ref comparison fails when noSecurityManager=true +tools/javac/processing/model/util/printing/module-info.java 8265611 generic-all @compile/ref comparison fails when noSecurityManager=true ########################################################################### # diff --git a/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java b/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java index 85b5d3b28b10a..ceedbcb50e5bb 100644 --- a/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java +++ b/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java @@ -33,7 +33,7 @@ * @summary Test javax.tools.ToolProvider running with security manager * @modules java.compiler * jdk.compiler - * @run main/othervm ToolProviderTest + * @run main/othervm -Djava.security.manager=allow ToolProviderTest */ // run in other vm to ensure the initialization code path is exercised. diff --git a/test/langtools/tools/javac/processing/6348193/T6348193.java b/test/langtools/tools/javac/processing/6348193/T6348193.java index 9165fc0495a4b..cc6400a1b38c4 100644 --- a/test/langtools/tools/javac/processing/6348193/T6348193.java +++ b/test/langtools/tools/javac/processing/6348193/T6348193.java @@ -28,7 +28,7 @@ * @modules jdk.compiler/com.sun.tools.javac.api * jdk.compiler/com.sun.tools.javac.file * @compile -proc:none T6348193.java - * @run main/othervm T6348193 + * @run main/othervm -Djava.security.manager=allow T6348193 */ import java.io.*; From 981e482372ff119c54b6eeefc24cd4ec34cf5acd Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:48 -0400 Subject: [PATCH 16/19] test for hotspot-gc --- .../vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java index 96d9dee460357..3201440955535 100644 --- a/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java +++ b/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java @@ -31,6 +31,6 @@ * * @library /vmTestbase * /test/lib - * @run main/othervm -Xlog:gc=debug:gc.log gc.ArrayJuggle.Juggle01.Juggle01 -gp charArr -ms medium + * @run main/othervm -Djava.security.manager=allow -Xlog:gc=debug:gc.log gc.ArrayJuggle.Juggle01.Juggle01 -gp charArr -ms medium */ From 900c28c08a03defc0cc8f049fd8ff4f91dd1aeba Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Mon, 17 May 2021 13:42:48 -0400 Subject: [PATCH 17/19] test for awt --- test/jdk/java/awt/FullScreen/SetFSWindow/FSFrame.java | 4 ++-- test/jdk/java/awt/Toolkit/GetImage/bug8078165.java | 3 ++- test/jdk/java/awt/Toolkit/SecurityTest/SecurityTest2.java | 2 +- test/jdk/java/awt/color/LoadProfileWithSM.java | 4 ++-- test/jdk/java/awt/print/PrintServicesSecurityManager.java | 3 ++- test/jdk/java/awt/print/PrinterJob/CheckAccess.java | 3 ++- test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java | 2 +- .../java/awt/regtesthelpers/process/ProcessCommunicator.java | 1 + test/jdk/java/awt/security/Permissions.java | 2 +- 9 files changed, 14 insertions(+), 10 deletions(-) diff --git a/test/jdk/java/awt/FullScreen/SetFSWindow/FSFrame.java b/test/jdk/java/awt/FullScreen/SetFSWindow/FSFrame.java index e75e891d176c1..ca836dfce84f2 100644 --- a/test/jdk/java/awt/FullScreen/SetFSWindow/FSFrame.java +++ b/test/jdk/java/awt/FullScreen/SetFSWindow/FSFrame.java @@ -28,8 +28,8 @@ * @summary verify that isFullScreenSupported and getFullScreenWindow work * correctly with and without a SecurityManager. Note that the test may fail * on older Gnome versions (see bug 6500686). - * @run main FSFrame - * @run main/othervm -Dsun.java2d.noddraw=true FSFrame + * @run main/othervm -Djava.security.manager=allow FSFrame + * @run main/othervm -Djava.security.manager=allow -Dsun.java2d.noddraw=true FSFrame */ import java.awt.*; diff --git a/test/jdk/java/awt/Toolkit/GetImage/bug8078165.java b/test/jdk/java/awt/Toolkit/GetImage/bug8078165.java index 81ebc8a8618c1..169ad7066162d 100644 --- a/test/jdk/java/awt/Toolkit/GetImage/bug8078165.java +++ b/test/jdk/java/awt/Toolkit/GetImage/bug8078165.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -30,6 +30,7 @@ /** * @test * @bug 8078165 + * @run main/othervm -Djava.security.manager=allow bug8078165 * @summary NPE when attempting to get image from toolkit * @author Anton Nashatyrev */ diff --git a/test/jdk/java/awt/Toolkit/SecurityTest/SecurityTest2.java b/test/jdk/java/awt/Toolkit/SecurityTest/SecurityTest2.java index 4fa3a7c294a96..e3be3e8fdea27 100644 --- a/test/jdk/java/awt/Toolkit/SecurityTest/SecurityTest2.java +++ b/test/jdk/java/awt/Toolkit/SecurityTest/SecurityTest2.java @@ -28,7 +28,7 @@ * @summary tests that a simple GUI application runs without any * exceptions thrown * @author Artem.Ananiev area=awt.Toolkit - * @run main SecurityTest2 + * @run main/othervm -Djava.security.manager=allow SecurityTest2 */ import java.awt.*; diff --git a/test/jdk/java/awt/color/LoadProfileWithSM.java b/test/jdk/java/awt/color/LoadProfileWithSM.java index a886233c850c0..1d9ba02163a31 100644 --- a/test/jdk/java/awt/color/LoadProfileWithSM.java +++ b/test/jdk/java/awt/color/LoadProfileWithSM.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -27,7 +27,7 @@ * @test * @bug 8058969 8178708 * @summary test standard profiles loads with SecurityManager installed. - * @run main/othervm LoadProfileWithSM + * @run main/othervm -Djava.security.manager=allow LoadProfileWithSM */ public class LoadProfileWithSM { diff --git a/test/jdk/java/awt/print/PrintServicesSecurityManager.java b/test/jdk/java/awt/print/PrintServicesSecurityManager.java index a780355b20d1b..7f551476422d2 100644 --- a/test/jdk/java/awt/print/PrintServicesSecurityManager.java +++ b/test/jdk/java/awt/print/PrintServicesSecurityManager.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,6 +28,7 @@ /* * @test * @bug 8241829 + * @run main/othervm -Djava.security.manager=allow PrintServicesSecurityManager */ public final class PrintServicesSecurityManager { diff --git a/test/jdk/java/awt/print/PrinterJob/CheckAccess.java b/test/jdk/java/awt/print/PrinterJob/CheckAccess.java index 05480a010732a..f962610c6fb03 100644 --- a/test/jdk/java/awt/print/PrinterJob/CheckAccess.java +++ b/test/jdk/java/awt/print/PrinterJob/CheckAccess.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -24,6 +24,7 @@ /** * @test * @bug 4151121 + * @run main/othervm -Djava.security.manager=allow CheckAccess * @summary Confirm that PrinterJob.getPrinterJob is access checked. * @author Graham Hamilton */ diff --git a/test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java b/test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java index 816046eab67e9..c5d356c6118aa 100644 --- a/test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java +++ b/test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java @@ -24,7 +24,7 @@ /** * @test * @bug 4937672 5100706 6252456 - * @run main/manual SecurityDialogTest + * @run main/othervm/manual -Djava.security.manager=allow SecurityDialogTest */ import java.awt.* ; diff --git a/test/jdk/java/awt/regtesthelpers/process/ProcessCommunicator.java b/test/jdk/java/awt/regtesthelpers/process/ProcessCommunicator.java index 8177a2d2ab32e..60a5952b32c03 100644 --- a/test/jdk/java/awt/regtesthelpers/process/ProcessCommunicator.java +++ b/test/jdk/java/awt/regtesthelpers/process/ProcessCommunicator.java @@ -152,6 +152,7 @@ private static String buildCommand(final Class classToExecute, { StringBuilder commandBuilder = new StringBuilder(); commandBuilder.append(javaPath).append(" "); + commandBuilder.append("-Djava.security.manager=allow "); commandBuilder.append("-cp ").append(System.getProperty("test.classes", ".")).append(File.pathSeparatorChar); if (classPathArguments.trim().length() > 0) { diff --git a/test/jdk/java/awt/security/Permissions.java b/test/jdk/java/awt/security/Permissions.java index 3d96415619473..1ee7f7ed726b6 100644 --- a/test/jdk/java/awt/security/Permissions.java +++ b/test/jdk/java/awt/security/Permissions.java @@ -27,7 +27,7 @@ * @bug 8008981 * @summary Test that selected Toolkit and Window methods/constructors do * the appropriate permission check - * @run main/othervm Permissions + * @run main/othervm -Djava.security.manager=allow Permissions */ import java.awt.AWTPermission; From bfa955ad9088ce655fe017c1cf7c000f3cccb203 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Tue, 18 May 2021 17:38:08 -0400 Subject: [PATCH 18/19] adjust order of VM options --- .../Dictionary/CleanProtectionDomain.java | 2 +- .../ArrayJuggle/Juggle11/TestDescription.java | 2 +- .../Class/forName/modules/TestDriver.java | 2 +- .../FieldSetAccessibleTest.java | 2 +- .../lang/Class/getResource/ResourcesTest.java | 4 +-- .../getResource/modules/ResourcesTest.java | 2 +- .../String/concat/WithSecurityManager.java | 4 +-- .../Logger/custom/CustomLoggerTest.java | 4 +-- .../Logger/default/DefaultLoggerTest.java | 8 ++--- .../BaseLoggerFinderTest.java | 4 +-- .../DefaultLoggerFinderTest.java | 4 +-- .../BaseDefaultLoggerFinderTest.java | 8 ++--- .../LoggerFinderLoaderTest.java | 36 +++++++++---------- .../LambdaAccessControlDoPrivilegedTest.java | 5 +-- .../Nestmates/TestSecurityManagerChecks.java | 2 +- .../AsynchronousChannelGroup/AsExecutor.java | 2 +- .../java/nio/channels/FileChannel/Size.java | 3 +- .../util/concurrent/tck/JSR166TestCase.java | 10 +++--- 18 files changed, 53 insertions(+), 51 deletions(-) diff --git a/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java b/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java index 807ce52d65bf2..bbb70f8067ad7 100644 --- a/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java +++ b/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java @@ -47,8 +47,8 @@ public static void main(String args[]) throws Exception { "--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED", "-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", - "-Djava.security.manager=allow", "-Xbootclasspath/a:.", + "-Djava.security.manager=allow", Test.class.getName()); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("protection domain added"); diff --git a/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java index 3201440955535..a0e51ae8b2857 100644 --- a/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java +++ b/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java @@ -31,6 +31,6 @@ * * @library /vmTestbase * /test/lib - * @run main/othervm -Djava.security.manager=allow -Xlog:gc=debug:gc.log gc.ArrayJuggle.Juggle01.Juggle01 -gp charArr -ms medium + * @run main/othervm -Xlog:gc=debug:gc.log -Djava.security.manager=allow gc.ArrayJuggle.Juggle01.Juggle01 -gp charArr -ms medium */ diff --git a/test/jdk/java/lang/Class/forName/modules/TestDriver.java b/test/jdk/java/lang/Class/forName/modules/TestDriver.java index 96db158e90774..de5505063a27f 100644 --- a/test/jdk/java/lang/Class/forName/modules/TestDriver.java +++ b/test/jdk/java/lang/Class/forName/modules/TestDriver.java @@ -112,9 +112,9 @@ public void testLayer() throws Exception { @Test public void testDeniedClassLoaderAccess() throws Exception { String[] options = new String[] { - "-Djava.security.manager=allow", "--module-path", MOD_DEST_DIR.toString(), "--add-modules", String.join(",", modules), + "-Djava.security.manager=allow", "-m", "m3/p3.NoGetClassLoaderAccess" }; assertTrue(executeTestJava(options) diff --git a/test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java b/test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java index 60da85ce4705c..14cc7a46a3cdd 100644 --- a/test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java +++ b/test/jdk/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java @@ -65,7 +65,7 @@ * and call setAccessible(false) followed by setAccessible(true); * @modules java.base/jdk.internal.module * @run main/othervm --add-modules=ALL-SYSTEM FieldSetAccessibleTest UNSECURE - * @run main/othervm -Djava.security.manager=allow --add-modules=ALL-SYSTEM FieldSetAccessibleTest SECURE + * @run main/othervm --add-modules=ALL-SYSTEM -Djava.security.manager=allow FieldSetAccessibleTest SECURE * * @author danielfuchs */ diff --git a/test/jdk/java/lang/Class/getResource/ResourcesTest.java b/test/jdk/java/lang/Class/getResource/ResourcesTest.java index 566a6f55447cb..ef02568c788db 100644 --- a/test/jdk/java/lang/Class/getResource/ResourcesTest.java +++ b/test/jdk/java/lang/Class/getResource/ResourcesTest.java @@ -82,8 +82,8 @@ public void runTest() throws Exception { int exitValue = executeTestJava("--module-path", MODS_DIR.toString(), "--add-modules", "m1,m2", - "-Djava.security.manager=allow", - "-cp", CLASSES_DIR.toString(), + "-cp", CLASSES_DIR.toString(), + "-Djava.security.manager=allow", "Main") .outputTo(System.out) .errorTo(System.out) diff --git a/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java b/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java index 0932594974e79..804494d87330d 100644 --- a/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java +++ b/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java @@ -80,8 +80,8 @@ public void runTest() throws Exception { int exitValue = executeTestJava("--module-path", MODS_DIR.toString(), "--add-modules", "m1,m2", + "-cp", CLASSES_DIR.toString(), "-Djava.security.manager=allow", - "-cp", CLASSES_DIR.toString(), "Main") .outputTo(System.out) .errorTo(System.out) diff --git a/test/jdk/java/lang/String/concat/WithSecurityManager.java b/test/jdk/java/lang/String/concat/WithSecurityManager.java index eb72ca10015a8..a6edd73faa9d9 100644 --- a/test/jdk/java/lang/String/concat/WithSecurityManager.java +++ b/test/jdk/java/lang/String/concat/WithSecurityManager.java @@ -31,8 +31,8 @@ * * @compile WithSecurityManager.java * - * @run main/othervm -Djava.security.manager=allow -Xverify:all WithSecurityManager - * @run main/othervm -Djava.security.manager=allow -Xverify:all --limit-modules=java.base WithSecurityManager + * @run main/othervm -Xverify:all -Djava.security.manager=allow WithSecurityManager + * @run main/othervm -Xverify:all --limit-modules=java.base -Djava.security.manager=allow WithSecurityManager */ public class WithSecurityManager { public static void main(String[] args) throws Throwable { diff --git a/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java b/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java index f53b422fb63d0..85c3c54026e10 100644 --- a/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java +++ b/test/jdk/java/lang/System/Logger/custom/CustomLoggerTest.java @@ -57,8 +57,8 @@ * @build CustomLoggerTest AccessSystemLogger * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot CustomLoggerTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot CustomLoggerTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot CustomLoggerTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow CustomLoggerTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow CustomLoggerTest WITHPERMISSIONS * @author danielfuchs */ public class CustomLoggerTest { diff --git a/test/jdk/java/lang/System/Logger/default/DefaultLoggerTest.java b/test/jdk/java/lang/System/Logger/default/DefaultLoggerTest.java index 42c122bd0e09a..756e90c7ff38e 100644 --- a/test/jdk/java/lang/System/Logger/default/DefaultLoggerTest.java +++ b/test/jdk/java/lang/System/Logger/default/DefaultLoggerTest.java @@ -60,10 +60,10 @@ * @build DefaultLoggerTest AccessSystemLogger * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerTest WITHPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerTest WITHCUSTOMWRAPPERS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerTest WITHREFLECTION + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow DefaultLoggerTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow DefaultLoggerTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow DefaultLoggerTest WITHCUSTOMWRAPPERS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow DefaultLoggerTest WITHREFLECTION * @author danielfuchs */ public class DefaultLoggerTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/BaseLoggerFinderTest/BaseLoggerFinderTest.java b/test/jdk/java/lang/System/LoggerFinder/BaseLoggerFinderTest/BaseLoggerFinderTest.java index 338dd01f2589e..8e94dc8d9ae52 100644 --- a/test/jdk/java/lang/System/LoggerFinder/BaseLoggerFinderTest/BaseLoggerFinderTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/BaseLoggerFinderTest/BaseLoggerFinderTest.java @@ -49,8 +49,8 @@ * @build AccessSystemLogger BaseLoggerFinderTest CustomSystemClassLoader BaseLoggerFinder TestLoggerFinder * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BaseLoggerFinderTest WITHPERMISSIONS * @author danielfuchs */ public class BaseLoggerFinderTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java b/test/jdk/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java index 4eb89d910c6bb..d1f09dedd3e4c 100644 --- a/test/jdk/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/DefaultLoggerFinderTest/DefaultLoggerFinderTest.java @@ -56,8 +56,8 @@ * @build AccessSystemLogger DefaultLoggerFinderTest * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot DefaultLoggerFinderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerFinderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot DefaultLoggerFinderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow DefaultLoggerFinderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow DefaultLoggerFinderTest WITHPERMISSIONS * @author danielfuchs */ public class DefaultLoggerFinderTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java index 2229b63b92093..5b37d398af595 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/BaseDefaultLoggerFinderTest/BaseDefaultLoggerFinderTest.java @@ -67,10 +67,10 @@ * @build AccessSystemLogger BaseDefaultLoggerFinderTest CustomSystemClassLoader BaseLoggerFinder * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHCUSTOMWRAPPERS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHREFLECTION + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHCUSTOMWRAPPERS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader BaseDefaultLoggerFinderTest WITHREFLECTION * @author danielfuchs */ public class BaseDefaultLoggerFinderTest { diff --git a/test/jdk/java/lang/System/LoggerFinder/internal/LoggerFinderLoaderTest/LoggerFinderLoaderTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/LoggerFinderLoaderTest/LoggerFinderLoaderTest.java index c7db9d746e305..048cea508ee21 100644 --- a/test/jdk/java/lang/System/LoggerFinder/internal/LoggerFinderLoaderTest/LoggerFinderLoaderTest.java +++ b/test/jdk/java/lang/System/LoggerFinder/internal/LoggerFinderLoaderTest/LoggerFinderLoaderTest.java @@ -66,32 +66,32 @@ * @build AccessSystemLogger LoggerFinderLoaderTest CustomSystemClassLoader BaseLoggerFinder BaseLoggerFinder2 * @run driver AccessSystemLogger * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Dtest.fails=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=ERROR LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=DEBUG LoggerFinderLoaderTest WITHPERMISSIONS * @run main/othervm -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOSECURITY - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOPERMISSIONS - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:boot -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest WITHPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest NOPERMISSIONS + * @run main/othervm -Xbootclasspath/a:boot -Djava.security.manager=allow -Djava.system.class.loader=CustomSystemClassLoader -Djdk.logger.finder.singleton=true -Djdk.logger.finder.error=QUIET LoggerFinderLoaderTest WITHPERMISSIONS * @author danielfuchs */ public class LoggerFinderLoaderTest { diff --git a/test/jdk/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java index d33b1330b83a3..37be43d042666 100644 --- a/test/jdk/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java +++ b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlDoPrivilegedTest.java @@ -76,9 +76,10 @@ public static void main(String... args) { doprivJava.delete(); doprivClass.delete(); tr = doExec(JAVA_CMD.getAbsolutePath(), - "-Djava.security.manager=allow", "-Xbootclasspath/a:foo.jar", - "-cp", ".", "Bar"); + "-cp", ".", + "-Djava.security.manager=allow", + "Bar"); tr.assertZero("testDoPrivileged fails"); barJava.delete(); barClass.delete(); diff --git a/test/jdk/java/lang/reflect/Nestmates/TestSecurityManagerChecks.java b/test/jdk/java/lang/reflect/Nestmates/TestSecurityManagerChecks.java index 7a41272a25f10..9773b9e4e8d62 100644 --- a/test/jdk/java/lang/reflect/Nestmates/TestSecurityManagerChecks.java +++ b/test/jdk/java/lang/reflect/Nestmates/TestSecurityManagerChecks.java @@ -29,7 +29,7 @@ * @library /test/lib * @build TestSecurityManagerChecks testPkg.Host testPkg.Singleton * @run driver jdk.test.lib.helpers.ClassFileInstaller testPkg.Host testPkg.Host$Member testPkg.Singleton - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:. TestSecurityManagerChecks + * @run main/othervm -Xbootclasspath/a:. -Djava.security.manager=allow TestSecurityManagerChecks */ // ClassFileInstaller copies the testPkg files into the "current" directory diff --git a/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java b/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java index ae115a0c51933..043c33d303a46 100644 --- a/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java +++ b/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java @@ -29,7 +29,7 @@ * @build PrivilegedThreadFactory Attack * jdk.test.lib.util.JarUtils * @run driver SetupJar - * @run main/othervm -Djava.security.manager=allow -Xbootclasspath/a:privileged.jar AsExecutor + * @run main/othervm -Xbootclasspath/a:privileged.jar -Djava.security.manager=allow AsExecutor */ import java.nio.channels.AsynchronousChannelGroup; diff --git a/test/jdk/java/nio/channels/FileChannel/Size.java b/test/jdk/java/nio/channels/FileChannel/Size.java index d06ba81fa51db..fd6e744f03f8e 100644 --- a/test/jdk/java/nio/channels/FileChannel/Size.java +++ b/test/jdk/java/nio/channels/FileChannel/Size.java @@ -67,8 +67,7 @@ private static void testLargeFile() throws Exception { File largeFile = new File("largeFileTest"); long testSize = ((long)Integer.MAX_VALUE) * 2; initTestFile(largeFile, 10); - try (FileChannel fc = new RandomAccessFile(largeFile, "rw").getChannel()) - { + try (FileChannel fc = new RandomAccessFile(largeFile, "rw").getChannel()) { fc.size(); fc.map(FileChannel.MapMode.READ_WRITE, testSize, 10); if (fc.size() != testSize + 10) { diff --git a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java index a2eb2b2e2a070..95a03dae22181 100644 --- a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java +++ b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java @@ -42,26 +42,28 @@ * @build * * @modules java.management * @run junit/othervm/timeout=1000 -Djava.security.manager=allow JSR166TestCase - * @run junit/othervm/timeout=1000 -Djava.security.manager=allow + * @run junit/othervm/timeout=1000 * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED + * -Djava.security.manager=allow * -Djsr166.testImplementationDetails=true * JSR166TestCase - * @run junit/othervm/timeout=1000 -Djava.security.manager=allow + * @run junit/othervm/timeout=1000 * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED + * -Djava.security.manager=allow * -Djsr166.testImplementationDetails=true * -Djava.util.concurrent.ForkJoinPool.common.parallelism=0 * JSR166TestCase - * @run junit/othervm/timeout=1000 -Djava.security.manager=allow + * @run junit/othervm/timeout=1000 * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED + * -Djava.security.manager=allow * -Djsr166.testImplementationDetails=true * -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 * -Djava.util.secureRandomSeed=true * JSR166TestCase * @run junit/othervm/timeout=1000/policy=tck.policy - * -Djava.security.manager=allow * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true From 9a3ec578546db26c5248d7a040afc4c2d9fb9e01 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Fri, 21 May 2021 15:55:26 -0400 Subject: [PATCH 19/19] feedback from Phil reverted: --- test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java b/test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java index fbf226f4d9ca7..0196591d24532 100644 --- a/test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java +++ b/test/jdk/java/awt/FontClass/CreateFont/fileaccess/FontFile.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it