diff --git a/test/hotspot/jtreg/compiler/exceptions/ExceptionInInit.java b/test/hotspot/jtreg/compiler/exceptions/ExceptionInInit.java index 553891300543..a9ca2954a010 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 d46f19025dee..80c7d856836c 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 diff --git a/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java b/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java index 0e5937b0980c..bbb70f8067ad 100644 --- a/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java +++ b/test/hotspot/jtreg/runtime/Dictionary/CleanProtectionDomain.java @@ -48,6 +48,7 @@ public static void main(String args[]) throws Exception { "-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", "-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/runtime/logging/ProtectionDomainVerificationTest.java b/test/hotspot/jtreg/runtime/logging/ProtectionDomainVerificationTest.java index 17bbc013ca35..06f46b6eef5d 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) diff --git a/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java b/test/hotspot/jtreg/vmTestbase/gc/ArrayJuggle/Juggle11/TestDescription.java index 96d9dee46035..a0e51ae8b285 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 -Xlog:gc=debug:gc.log -Djava.security.manager=allow gc.ArrayJuggle.Juggle01.Juggle01 -gp charArr -ms medium */ diff --git a/test/jaxp/javax/xml/jaxp/functional/catalog/CatalogReferCircularityTest.java b/test/jaxp/javax/xml/jaxp/functional/catalog/CatalogReferCircularityTest.java index 21a6780bb8d3..0414d28502cf 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 0cc05e97da0d..4f59f77a58fa 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 2ee5dafa901c..666bb91c7860 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 b20aba8dbf4f..62aa2fbec174 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 e8452622462a..47cad5616c7c 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 aa8d00efa1fe..e576559dcc17 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 80772f98927a..355fa68f0bd2 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 b2fa3a94ce8a..d12720c2391b 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 4dfc4d7186d0..f134f0d43910 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 d66941940cf0..33e91f6494e6 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 3f783bebbe71..61235a725790 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 c9812ead83d5..59a856227530 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 68081e291998..9c1894e14cec 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 f7a3ebd4376b..b99fe0be99c4 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 7714e66ea126..128d0982db72 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 c1a426688277..748a15774248 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 f4777dbaaf09..60b4c950a62b 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 e81a84b020ba..82bdc8022f40 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 0c62b7d72acb..c9480dd2db38 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 6b83fdc306e6..902b5237b865 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 4be1e621e17b..f0b6d4d26ada 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 7e7d1c28e82b..f96bc0947809 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 c27094fda84c..42bcb95e1099 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 6b6976d6d9e4..360539eda439 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 dbdcb446fa76..dd9ad54e8a1f 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 dc7bf7a7e7b0..0ec655f5aa87 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 057414557a05..bdd6a4e78bfa 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 f00259f613b9..06c1a847d53a 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 2f0281013fa6..a626c1ad02cf 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 be2dcba2f4e6..65d42c83dc34 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 c4d1aff87ff2..2743b4bac534 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 65028a582fc0..dfc7e2df9eca 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 43527cf721a7..ea50b10364c3 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 aa8ba1337bbb..492644027643 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 2effec0126f1..5bf37b24a142 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 7a18ddba527a..659af20492a4 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 1c7f410615fe..3e7fc2ff5f6c 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 94273e722ee3..33dc530e72e6 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 645a26e82ee9..59f3cdc40f24 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 e747396ff9ee..310ba0b6c20a 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 e901977e9681..f7fdaa307142 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 e3e46791768e..85b39d288fb9 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 b1a65ec6e9e1..897e6183f755 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 eb9de80edc49..d274355f06da 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 843b5571dbb6..8ca1ae14c0c3 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 16f2ba1b0e5d..e772e4e8892e 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 cfa6d59a5875..224e6528ed3f 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 10867c9f0d29..e9ebd33ea7db 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 b98272896cff..73cf90935061 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 cf70fdee7b30..027da107affd 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 ec5d2d4f3879..9c6ea1ed7b56 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 14d463e4dae1..f46445463078 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 57d47c2c72a2..b658e13660ef 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 3ea3b1b8639d..ff898fc5c621 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 c7c7fc3ee132..db092c003e9f 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 e0471aeb1604..db07644d989a 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 920723c4a56e..11bc3dc1bab2 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 bc2b818fba75..c3bfb0354cf1 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 686abe494c38..db3280f2ff76 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 ec50dd50bb5d..56cc6fee57bf 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 aaedc697b462..8c3871828655 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 4a7dca37be02..aa95e147e0db 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 b0e778204d2b..67f3f03c0d4d 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 6f5e80abb7a6..20db15e01c97 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 86808d6b035f..d98653c82c70 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 5c5405e63f05..325381025670 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 8ded2ce6b515..600b46545493 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 aa4f6ee47593..56e5932bcba0 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 9ac72f5c3377..cc2c100042fb 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 ebfe9295ddd0..cc9e3d097631 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 c67f32a840fe..f9fd96dce6a9 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 78473f793bc8..2e6723f6fc75 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 b83bcf75f0d9..4e495fba159a 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 9d9cb491f2aa..3b6c5e126403 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 264ad06a95f3..c1ec36e320ac 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 46bb3d25ca69..dca0dcea354d 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 3b942942132b..cf9e5a6e01f4 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 3131e8d3de17..87bdfdd0dcc8 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 ca3f174ce395..58241072b7cd 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 9c4910bc904a..6712f3a9ca6c 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 f3115757e0ff..60344d296093 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 e6259be3a76a..5fe50e39447d 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 5ca0b94924a7..5da3045fcd75 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 6418fa264bde..173cfb9677ec 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 173a5ca659f6..0bd15eb507a5 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 695a3ec806a2..d0f56627e53d 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 7fd27ffbbf58..e137c4271651 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 627134b5eaf0..225265bbb200 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 6822a88034ce..6dbc3d92e2fc 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 71cad03dc9f4..f4c5354ef0ea 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 91dd02f8fb98..6ca9abf190de 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 4483942699f5..a8d9adcf3ab6 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 350074fbf2c0..bd526b4e1050 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 7ee49f39076a..ad6951d7e2e7 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 518dbc0f8bb9..02f4baee9b26 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 568548d919c8..a7e1bc7a2b98 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 8712697a298d..5f8f8d3be865 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 673674b9e65f..a17f5caae387 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 70771bfeacff..fb8d3935fbfe 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 822140baccc6..79245b28d7d2 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 6ba78e9d8177..6e69fc10d34a 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 69ada828241c..aad6d0f2ce44 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 5d3ea0317c51..a8230b4a8914 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 2bab94a41aa4..9c4a6b0d4eab 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 5c4ac7c9bc6f..9147f317b8d7 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 5c6c1b3e0be3..ca03c241d91a 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 1778a20a0319..44c691c93361 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 7af1eb4235c8..6c786ee796a4 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 15626ab1e71a..0c512db8259a 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 f76670bd22ed..0e14ebc43557 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 1ca0bcb77f33..ad805c7ff5fa 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 f5deceb04f16..0da5ad75cfb2 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 d2e7edee6f08..9b138f127087 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 dc96ce2832e6..8f487820d681 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 03a54ef82be0..3daf3b6365d7 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 fc3908461fd6..bef1339adf7f 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 83083a418ff9..35582749fbd8 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 2549b64c072f..49e424f38456 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 81da17499442..e6506b22e2b8 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 cd491ac8a1d3..499a5b23e88e 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 c1706bf80dcd..5ae453dbde81 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 721e25a11c18..a34b268d7933 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 33e81c1ea5df..8472a3bf5d30 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 d733bc704ce7..415842233224 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 42c64ef7babc..6559aef6146c 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 ad5f815cbad4..9d902f66ebfd 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 1dbe41883301..474a892aeef4 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 1e09a762f616..65d9a2806a83 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 083c0ff8ba58..2ff1b87dbf7f 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 2d1c25967e80..d1540dddf63b 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 36de6637e6d4..4bbb5500c641 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 c4184844c040..f104029a9689 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 5e6e34b6af66..ed553ee7ce24 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 4029e2b21aed..d4050c8bff28 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 bd4f8d6a3057..044b6588c448 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 2a1e2d6ea7fb..1c8c0821a546 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 03412b59edb1..b66af1d778b1 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 415d949c05df..b7fcae1daddc 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 5ce2d195acd0..664393a687e8 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 50a5ced37f47..fcabd144b768 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 30e1740f11ce..237d416a51b2 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 cdc96d140b92..a105ceb4f781 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 ebd66a0a02b6..248f70e4b988 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 4e42cb06b8c6..99fa54900465 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 d389516117eb..f303bf1c707e 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 f0b557a24a70..74321c52fde1 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 21284ee39027..bcad42bdfaa5 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 22940e07b14a..181d83b55594 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 e051748fe7a1..d3784f0a6bee 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 23c872e8553c..38735c414f21 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 1e0f9da9f245..08f6530e7b4a 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 a706ae2bb31e..b32d8b1d904f 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 90102a0afd22..58c4019bffab 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 0d73cd4fee7b..70f1cb68e1b7 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 ea91169b2034..ccae3a55e060 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 528736f11e8b..b3aa2d812f5f 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 b43e694a575b..94a2dcdeb786 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 72a56b8a9a82..f72c9739c75d 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 f07ac57c7b24..80e67d416f10 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 6f71906ee9d2..24ec0476b8f9 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 b6bdd0f606cb..d360a27f042f 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 745c31c8d2b7..2a362a9f4a55 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 91507e977003..76c013f4d7c6 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 07541e8fee31..429949ad7f26 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 3f4f1ffb0c42..c0eafb0f0142 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 8c39f248400a..825d3f56596c 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 18b50f2daed6..4a999b5cb145 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 a9f15c33cf93..3cf602c82a4d 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 7da0d602d7e4..dda14b2b36ca 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 1713fff6d621..93d6782c3589 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 743f236302bd..f885a244cc29 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 d0797a2f669d..79dd7d326ef1 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 3fb179751e60..fb1c722be191 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 c0be7b47a04a..59ae3bb4f068 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 9213a59508d9..e9e658d50648 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 04346c89fea1..872ba1b3e4fc 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 9f8cbcb41116..340bd12d8674 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 75fc8adfdd44..83a66f3ce06d 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 1bf27aa09a05..3c0998b57a8a 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 5a76ae9992e6..38fd631114b3 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 98f2e96418d8..fab882af2ee6 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 37ee4cc57f43..459aa086e4d4 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 e427478c4274..930151d0f4d1 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 87953ae836b1..41cc1c29a36d 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 7e168d90cd42..2c9ba167249d 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 9c638368cc6f..c18f144a3f42 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 a866ee56a813..6149805a0f62 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 a1cdcac70541..b6d3de02d98c 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 f2266d24e1c5..2e4f8d936e40 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 6fb819bf9ec1..28e9072b2098 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 ec25ae28d802..9de25e9aa1f9 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 2cab8f85f52b..ddabbcd998d4 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 aef8e65f8380..4349a8cbdccb 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 d45e6702fc0f..b6a2a3947699 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 0a3e35c5dd3b..9a842561ab0e 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 c3159cf50cd8..dc554f259dfd 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 5b4e018e757e..60f950057602 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 8385d40c47f3..421e4109cda8 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 982bc8e595ba..22c7f5b048ba 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 7eb7a59fe8f2..3a82f58dca8c 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 df006578c0ce..f735b8c869ff 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 1ba064fa56bd..ba2c3656563c 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 7d05dd7f0a94..49ea6ea06f37 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 be6dbc986f8b..fac75946702e 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 a7bd3f59d0c9..440999d8dbe2 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 fbfef8f705b4..102ef7d0900f 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 32c4c5c05dcb..5d16af21b867 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 b56eb7ec9a93..19a2c4d9a6b7 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 cc234531a278..79c3bba33623 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 7aece9698f9a..b949340123e7 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 ba8c7adee57f..83413811fba4 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 4fa70e2b73bb..250721a47448 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 0c584d0fe35f..74223c6826ca 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 832f74de9599..debb318d470e 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 5c6a41061040..1f3473850579 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 1d1f728009d1..4dfe360ac134 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 f4a40ef28e81..bef1b02e2380 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 09a12ca7476e..c6c4af176c75 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 24526e0dd9f2..806be8572db8 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 db93e02f55b7..51da18e69c5f 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 13f25d5adc00..d69808989e33 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 d4fa45bb7897..870b3297be8a 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 1490e28269c5..260a8c473167 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 6453fae9e06a..61bba35daeb9 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 a0a538f2369a..6650315ef161 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 4610aff758ec..fd9034eeb44d 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 43e785f81e46..ed79ce0cf608 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 44c602e72d46..03a8863a1802 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 0472899ebb2e..aeaed26dafec 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 d98aec1caf82..687db31a91d4 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 ebb7cf879421..8d193d181884 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 437dd9e602af..2da4cd7e88f4 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 23531b463ec6..ddc9e44f1f8c 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 f2b8ebe7e2f5..1a52f6982907 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 416c3e960bb2..2f8c8871b8eb 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 7c3b529afcf2..b81d14e24771 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 9ed53c578330..95f664dfee05 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 0ff6191cc312..0ed6b58895c6 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 f0e143632d39..281f385c7327 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 28b871afcd95..59a2bd313ab2 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 3dd7e25de3c2..afc23e959a4d 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 2e4b41dce2d9..90187dd0cd68 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 562b7a3d5595..707518e01125 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 a70288a9346a..ab932b857dcb 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 aabfa430581a..1129e4d522e1 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 99c12487cf7b..d202dadecaba 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 47b089ae55fc..2ba4177d0a3d 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 628977e2656f..e0e84869a2fb 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 05f9aaecd0e3..445fd457629e 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 87e70ab9cd90..a73129a4ee7d 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 daec8fb9cd2e..7a83b01a0d98 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 ad4c50dce75d..918e4ff77a96 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 93e934c7fe39..9981b8cdc8d2 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 5c8096b45af6..782cef14452d 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 a4bec110fe95..b67b39cd0969 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 49f03ca4ba08..8b13cba975ae 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 cdf353ecafe3..bfec69af1431 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 508b52e41dd6..073d782a8b3b 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 898bf3e33322..3dbd217976d1 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 1b47db5f4b33..0ba486800860 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 44c0c1fcd2c6..84de5d22a27d 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 f4f8f5dbdc01..497c5b131628 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 7d456463a4be..c74569dd49ca 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 1d7041d58b23..9faa9028a68b 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 2cc0a483ae60..197ffbd9cf79 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 c107c18110fa..277eed57037b 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 0c753ac3be40..5898049acbbd 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 49908781cd1a..6d2755480c08 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 334011befc77..a90e465b922d 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 cc8ac7bbd9f4..3d83e2342f63 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 bfdfb76e06f3..0fa1183302bb 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 a31b445880c9..6e771ad4ceb9 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 95a88e5eb4b5..be495f03af71 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 e7378e11170e..971a89535a20 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 35472f0713da..82205353cab2 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 e17b04da265e..11e0c2d1319a 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 0e4f0aa22f56..b89cda5758c2 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 8729d9f27111..2d6834644308 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 bef8db02e6ef..c33092534e05 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 d40bcae712ce..bb91e14c7201 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 ced54992790c..ad1e9e2c4be8 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 7e574bc879f0..ae268155e0c1 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 00f7a62dadad..1170fb0ffb9e 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 ea71a065817f..f6234bc44120 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 4af0c3df23a7..cadc7fbc40eb 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 68fab1bdb5bb..4fc07a4894f7 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 abb9957a2563..f0ba0306e108 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 832f9e38e3be..894a9c96c88a 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 1e4266d65e7e..12b30b07d7cd 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 0419c1cf8bce..a69d21e4899b 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 eb8853da8914..f41638617345 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 dede016d4ff4..b6ca27670a23 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 2c60db3cc3dd..a90da9e09173 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 9ba16dbc9c1c..1936e1bb05e9 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 9cfec4471f3c..c3eaca59f1ef 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 b32d1d835243..e4069b332560 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 ecf248b8523d..1efacc7ce350 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 61c6692b755d..fa6a287bc1a0 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 255dd878c4e4..851fac708375 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 f9bea6978a17..e2d2b179218f 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 acb81122327a..145de8eecf00 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 6c1938e4afd9..97cbbbd1b1de 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 221824352066..1323cdff886b 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 27c6ddf008c7..dddbbea396b5 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 f1d4c3d8cfec..6f3481a463ef 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 df14bc376039..d8c3218ae379 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 e00da88993cb..7a621141bc77 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 ecd61f603ec8..a68f805521f0 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 57f3009b6822..883e5ace08af 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 b17df3118240..62220163c0da 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 615a973be021..2c1764d39f33 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 fec10a1be1ba..cac380f1a504 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 2bfe0631a716..505d5930b459 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 5ad290060ac1..97f0f82e9da1 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 78006b5c8f4d..9b9aa76ae451 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 fe65ee0e7a9d..744dfdee274a 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 13331ce4cc1c..f6a3dd2275b2 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 24c3bfd43180..1e18d7c7478a 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 04ec9fd8ea3a..b39593295a8a 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 cbfaf0f924a2..d69cf7af2107 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 f1267ce4622c..3486215c4909 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 dbba31b46dc4..398f935a6489 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 8047d83fec15..35f7aa6fc401 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 6602286fe901..44a7822479e2 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 8aff9628bbae..425468ef26a3 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 34e092101bc0..673c4b212f80 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 569d987ab739..b46e6d7e4807 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 dd92c26065aa..a8589c1ece39 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 29d08e3e56bc..78a397969d7f 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 cf6aa98f30fc..29d211db7881 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 f0cd14416613..270507a8c2d5 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 550da2bc8d27..064461a56dc9 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 32f79d674639..e25f2bf3c2c8 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 3f99410869b9..a358978557bd 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 77bc7b4a7e2c..c6c1ae2433d3 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 8966ffeea120..4e83f88dff14 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 c12a15152450..ff006e9129ab 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 05300cc69648..88dcd0a1159e 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 46e9fd230349..6eb978c66704 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 e7b22fec08b8..3229af656ce0 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 74a75f75433b..0c014d7503b6 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 5c7bac6dbc93..f4d3f4b1a26b 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 c0554c2478e2..1ed208aabb3a 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 d78fe660b5fc..d05389697869 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 fd203f3c7345..8eca589566d7 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 01d47b627e4f..ef04b7374089 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 cfec3964c191..990e2f6a4bee 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 4954f41948a5..30c094cd83be 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 28809222c129..67b9751c1dc2 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 a8c761f23daa..a20705a718da 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 c75604b4b5ef..9b801d76d62c 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 91b2891fdbff..210bd2ce932d 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 8654f283a040..a8d10802541d 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 385bef46b58a..496f63a7bd46 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 cf585a2df69d..663056025f9b 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 fb6dcdd42109..4796cff2a516 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 75a7ee51fa67..10f9157eef71 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 2da7618ed7c1..0f5205cbfe81 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 8de45e95ff32..8450d3e4a49a 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 e9db60429ad2..feaa8b022508 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 ba5462205801..dee3d838f29e 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 8c8d677c5203..223137c97512 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 b3a85cadc68e..189822e1fdf2 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 3d6b490f2c38..e314e09b96dd 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 4bbc7560b192..9f7283504620 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 8a96e05ae5f9..99de8bedc52e 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 f6c54b14b645..0cabf01b20f3 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 5fa073eb2d5f..0c7419d01dae 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 b9b0812c8e75..616598bee800 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 71a1afee3f98..3d1054fac30c 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 f397677ce735..d671aa9c02bc 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 47d8d624c213..f1b7bd215e67 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 54e1e05ea90b..f47400bfb6dd 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 88d37eec67e8..5a8d0c3cbe36 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 21479c6a6e33..4a4556efac3d 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 c695aded8d74..d7232a0f6ee6 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 8059723d7009..6f6d2ecf7336 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 e134d8b6b5c2..6b77db907a5b 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 510298c865d2..0d3b9219916e 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 71f55a4f3c4c..5334e10aea08 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 bccef3d37b88..6ecbba3014d8 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 459fa8c149a6..2608ea2ff0c7 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 6f0fb1b5a25a..83840d1c6cc4 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 b42f52728932..5fbe6d30dac5 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 7cf58257847a..832f5f577d5f 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 78ac556e80a2..e07e172764e8 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 457cf697228e..ad8a18a321ed 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 58062410c43b..0fb2fb224871 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 8e3613739d3c..660d3919717d 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 6e8213e0e8b6..8e9e7dd1a5e4 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 f29da26225d8..5a53b6ca7a6d 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 002c9983716d..3b4c1f6a18de 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 ac1450d05d3a..03ecf71aa42b 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 424d4f35c863..86a84095d63b 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 77da3675b83a..54a381c394d9 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 0f5e9dc5de56..4d9fea992c46 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 22317b325bb6..e9797a6fde37 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 663c7d87fd30..774466dee371 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 f2ff60839d9f..321d33eca6b2 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 e2e12b62067c..6e687c4300a3 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 96d68ff48745..a061cabecb4a 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 9ff29807e617..863f98335409 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 4e885d190e3a..a8f908a752d6 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 b717ff184a30..25f570330528 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 210ca81ff05d..0c72202bd84f 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 55f9903e470e..27ee0b4e3e11 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 e41bf4aea927..435dd3d3b3b9 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 3fe2676fa622..34cd44649d4f 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 1f398cc71fb7..319eacb8b540 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 50225cc71174..2c83da1c49b4 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 3a127367be66..25ece2a97abb 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 7422497f0301..64a21d999cd7 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 58f7e1ce33a2..e7aa367eaceb 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 dd5ace276335..a0024230fce3 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 2aad726f9fdc..aca7fe3c2488 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 454493640171..a7295986f71b 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 15411a0e25dd..e49fd141e600 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 d0e100d6f0db..d9a8878093ee 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 efe1fa2a61b5..47b350f35327 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 1717f5d74d54..4502083efa62 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 ea961181569a..7f5c45dc12b9 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/com/sun/java/accessibility/util/8051626/Bug8051626.java b/test/jdk/com/sun/java/accessibility/util/8051626/Bug8051626.java index 4751d55ad6f9..96f301d5ce52 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/com/sun/jndi/ldap/LdapDnsProviderTest.java b/test/jdk/com/sun/jndi/ldap/LdapDnsProviderTest.java index 19dd9271b710..3acc3d0cae19 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/com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java b/test/jdk/com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java index 545890f73476..a7fa5ae303aa 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/java/awt/FontClass/CreateFont/BigFont.java b/test/jdk/java/awt/FontClass/CreateFont/BigFont.java index 0c5970b27941..34a98c151192 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/TestFontFile.sh b/test/jdk/java/awt/FontClass/CreateFont/fileaccess/TestFontFile.sh index 7737f63c2277..d8930f3b3fad 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 489b2a0474bb..bcd561b8cbc8 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 24fd5116c8cb..96938ece2258 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/java/awt/FullScreen/SetFSWindow/FSFrame.java b/test/jdk/java/awt/FullScreen/SetFSWindow/FSFrame.java index e75e891d176c..ca836dfce84f 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 81ebc8a8618c..169ad7066162 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 4fa3a7c294a9..e3be3e8fdea2 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 a886233c850c..1d9ba02163a3 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 a780355b20d1..7f551476422d 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 05480a010732..f962610c6fb0 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 816046eab67e..c5d356c6118a 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 8177a2d2ab32..60a5952b32c0 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 3d9641561947..1ee7f7ed726b 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; diff --git a/test/jdk/java/beans/Beans/Test4080522.java b/test/jdk/java/beans/Beans/Test4080522.java index 03e4e31300aa..1c2d5bb9815b 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 2f8015690d28..158b250bcaae 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 c336fd016a70..0bed290ae4a9 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 eb2e68e7930e..3ca6970d0a2f 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 2edd14580d6c..08654c07f8b1 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 d0251fd82acc..6adecc0e7926 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 c274564484cc..64d76e4555ed 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 71553a324213..cd8ac27015f6 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 393dabad7226..73998caa642d 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 5d8a01d81690..cfb33ce819af 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 e449baf1064e..94452e643395 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 b1ffde0a9eb3..7018bfda44fc 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 7dc21b95d864..699a5a455ed8 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 8aec51b02994..419d8be2a9a6 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 8ff3d2e55d70..811f3d2fc140 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 cd231d33e687..65bfb7c511ca 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 84d00f99e7c4..e2aa79fff373 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 742a6d65d9b0..c26277915410 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 106570424891..2243c4ddd528 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 34a2261ea692..5264ee1932d7 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 5d06f0c0515a..79667c15deb0 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 a32cd1506cab..2c6503854697 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 875c3a0bf780..40dedb00146c 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 25a24a8fbb98..43f613e3d377 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 2a2a6d718b41..c27169dfa327 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 9d81402538b7..c5aededcb7df 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 dbd92b91a29f..5681a0411c10 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 e04c0c9042d0..7f886353ca25 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 f04fc43916f9..c8b12c654bfc 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 129ea0c4fa94..b7bc4bf93b16 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 c4fb4367dfdd..36f33531cf99 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 24d29fd53163..07660b29f8cb 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 07d73b0fa3e1..6e4dd7f65068 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 091ee5d272d7..364511344805 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 e846cce2a4a5..2cd8ca826ce9 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 4a7bb93287a9..9df3de817009 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 1f7ffbab8ad0..d01b3ee530d9 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 1168871051e7..e8a87b9ef30d 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 d13778eff4e3..025aa45e8d40 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 af008c47d876..7a503cf4a287 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 05ead3169032..1adf5d18a881 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 a22171ab61c0..c25ad7d27b4f 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 914e2055bcf0..f1c75ccaed35 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 9fa75a52b09a..9c0212bfbc87 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 9947a4a5e68b..e082be5523ea 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 5353e2b2a6b0..805abc0bf404 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 b9f61b5d7909..e3f07dc721d1 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 ed287b7c5d20..d6df6a28e056 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 a69ec8932b7b..a45082b69126 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 774113606e84..6acbc6489c34 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 6b44dd66357f..e522895d5f44 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 c36e70c17205..4fd5d87eb67b 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 dc59b1394f2d..0d34eab2e0ec 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 911983be6b3b..025cb63ca97c 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 4b59a4aa49ff..819e46141f79 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 8f4e709701dd..957107fc5d2c 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 f8ec7d72c153..b11a6ee99c58 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 13799ac55588..6e3e3bf50a3b 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 d9a748689f6f..fd8b36e49e75 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 1369b4565bec..ba39390d5a87 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 dffc3d5916af..940decfb1562 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 ec8472d9cd3a..ebeb45534a5a 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 02ba9a6a9394..8fcc9c1c4e1a 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 2282305ca6ec..6bcf30068536 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 378e6b8f9b5c..fc2952bbff72 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 b80b1321c11d..3208cbd58b0d 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 bfc4d8ccff1d..866a816f28da 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 a350f0b2f67d..fc3e7da709cf 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 45a026a325c6..11b0cefe7586 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 be77cc282e5a..efce0d5ddaa4 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 72f52eb1f6e0..9fda201d3b91 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 a641eaa5a9f3..7725b2ab3a02 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 46fbe69a5c97..97506c14132f 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 c680f689b59d..676fe49d3442 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 db9f220b28cc..c4f97a43b85e 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 877d5984cacf..9d93935242ff 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 44802b6f96ea..443d7287c8c3 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 b9f501e7f8e7..58ca311a98ae 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 0d37770a3611..c2cffd5a408a 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 32a90b7e3382..40098cdfc645 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 b333e8a1d3e6..9ccbe31bcf56 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 57730f1172b5..1bbc7fd96a72 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 4cbd6a091f18..1d6e86144b49 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 52f029b47a3d..838fdd60bead 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 42257f512cd1..70df96bfb545 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 bcc345744ff2..3f5e3b4887ff 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 75036f80dedb..e5ea44b302d9 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 466d8eb01fa0..789eb116c9d9 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 22d495d4f314..a2183208b4e4 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 6abd41fd9c9e..93b02ac29b70 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 6a6efdad1999..9f7631d80a2f 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 a7e515ad1b53..beec75e28259 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 382bba5addd0..2b58b2724b50 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 6e310e0dd3e1..935b36f52da3 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 d4207fd4978d..71329201ed45 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 9090742bbd2a..7612925c898f 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 8e82767e5580..3a9f61ac90db 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 95f5f6712902..45a3ef61d9c3 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 40d8bf59a9fd..ccf7022ae7f2 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 656a11d763ff..2d80d9cd731d 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 12af8203fb44..98a5cc48715e 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 643701ebc901..cac3c10516ae 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 7a636b10c65c..47b9f28e67e1 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 497af7bc7974..5b0a7f1f43e9 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 ed65d1ed97ed..6aeb17f6bb03 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 fbb7be9864a7..f432153504e9 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 4212c047d5d8..132c6ffdcced 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 4861f625ff9e..a3a7552b90b7 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 9e5da1160c13..d7d7e16eb9a7 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 3eb1b1df8777..700032b7d657 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 7a1fb303b0cf..b4fa548f2de5 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 a7b952d0b592..9fa576a6a1b9 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 15e8c856222d..f2970d159c27 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 85217504cf64..fb1613a01649 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 7bf643451347..445e9364eb94 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 31d5a81a5184..9d2c68a06bd6 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 699d1b53a495..3a06079dd19c 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 161de331c231..684bfb40375e 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 4055008206c5..dff6df732dae 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 7278e81e836e..032fad774ba6 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 589bfa8f16a4..5302da138058 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 94d473155c3e..0f2f80a8ccb2 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 1a84062a77f6..ece00580ec31 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 0f41464060ed..b5b0e12c5e67 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 794c95c5c263..ccc4385ed922 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 fe03a8d751f3..f74d409445a5 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 66bcd158d1fc..5942217a59c9 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 5efbda71fa2b..e9fd90abf810 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 d302c29abbdb..fddd57c104fe 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 6548a4553118..f92ec82690c6 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 b95357fa0850..fbc9ea6e4642 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 b9aeea1a0168..998abe17ef37 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 382b60e457fe..15eb8bf19804 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 0fd60cf1a10d..54e88a1ccfd3 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 72518bfcff15..4ff12e4ebe85 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 85d0491fb5f1..548e3c41d40a 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 de964c81dfd9..6f2a24205c89 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 739cc86c6338..478759e42639 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 00db87b7ae0d..7ff797081666 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 a45360003cdf..e2bd7ff20040 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 31decb2c8867..92f82fb53196 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 739460fe504a..414f404dc71a 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 53ff8cf3ed04..1103fc3d3d24 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 2fbeedba52ac..b2b2b6062be3 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 689212c237d4..f4359fbcc129 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 abf1cd53b31d..ef3ae7b9903b 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 b4f9c0524139..d70b96a49e51 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 b6fbd1a6d830..b08ce2f113c8 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 ce66182ceaf0..ae9bf62047f9 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 3582716ffa25..8dbb24148193 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 9ca11f9954aa..2695538ce24a 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 1e41bc41e7bc..9ca4ceabd63c 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 2349c99d315b..020e3c85db64 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 b1ce8efb7a8c..2ee375c1763f 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 86f1f7b71d54..3ad47cb95f2f 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 2ace41d00080..447aba0791a9 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 e2909fa3e389..f6b1ab2e817b 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 9c3953f47677..9e146a3af094 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 89067c82f06f..578fe3151495 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 b1244539c6d1..04418dc89eca 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 7f2b8fa7afa4..b4cee00a9b98 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 5f68c2672286..60e24780503b 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 e2bd372df118..4e6fbed03934 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 0ee1fda4ca89..fb9420d9a909 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 42caa3d5d46d..257b6497b651 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 91b84332c23c..770a6603659f 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 d8fbeb3bbfa4..936a76fb661f 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 b65f502588ac..9721f6c487b4 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 4f393ebddd89..ce818c6afbce 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 540ce2070b1d..abc67c6d51f4 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 d7e2aac96e5e..4be669125687 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 24564fd96fe6..03e59c155620 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 313cfa66a178..86f04ac3fa8e 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 a28d7cf43878..32770bc60f08 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 7ee7c0b94d81..93e7d91175e6 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 7171eadac82a..c154be327ea7 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 b6e794690d1e..5ae0f23ed4e7 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 */ diff --git a/test/jdk/java/io/File/CheckPermission.java b/test/jdk/java/io/File/CheckPermission.java index 33fffddd2837..f6126a088434 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 80a23db63bb6..39402fa9b70a 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 973a539318e4..093ef1c98c94 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 218aaeb52525..de5505063a27 100644 --- a/test/jdk/java/lang/Class/forName/modules/TestDriver.java +++ b/test/jdk/java/lang/Class/forName/modules/TestDriver.java @@ -114,6 +114,7 @@ public void testDeniedClassLoaderAccess() throws Exception { String[] options = new String[] { "--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/ClassDeclaredFieldsTest.java b/test/jdk/java/lang/Class/getDeclaredField/ClassDeclaredFieldsTest.java index 1b112699b68e..f62e80dddbbb 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 fa026314908d..12cab1f5d0fc 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 --add-modules=ALL-SYSTEM -Djava.security.manager=allow 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 1c81b09fa5ae..e74942bef741 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 fa14214cda66..26120d1f0347 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 ebb8b29818e5..ef02568c788d 100644 --- a/test/jdk/java/lang/Class/getResource/ResourcesTest.java +++ b/test/jdk/java/lang/Class/getResource/ResourcesTest.java @@ -82,7 +82,8 @@ public void runTest() throws Exception { int exitValue = executeTestJava("--module-path", MODS_DIR.toString(), "--add-modules", "m1,m2", - "-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/UninitializedParent.java b/test/jdk/java/lang/ClassLoader/UninitializedParent.java index 0ef23a280f97..f84003257fff 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 6daa8a0bc257..804494d87330 100644 --- a/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java +++ b/test/jdk/java/lang/ClassLoader/getResource/modules/ResourcesTest.java @@ -80,7 +80,8 @@ public void runTest() throws Exception { int exitValue = executeTestJava("--module-path", MODS_DIR.toString(), "--add-modules", "m1,m2", - "-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/ModuleTests/WithSecurityManager.java b/test/jdk/java/lang/ModuleTests/WithSecurityManager.java index 88813c859acf..2e0bbc983fe2 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 750b735e07d5..db820b49a096 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 ee0319bc1180..1aa56c9b728d 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 25616b7f5b57..92085e70bcb8 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 30b13cb7c68f..2b037aaafd60 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 418a04a68571..1ad1f57ff439 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 7134654c0441..4e97c625955d 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 6769f6d3355e..a821e02544dc 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 31754720bdea..c02f0f051ab6 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 dd1fe80dba0b..a6edd73faa9d 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 -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 823ba62adfed..85c3c54026e1 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 -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 aaac885ec14f..756e90c7ff38 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 -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 ab08bb08aa41..8e94dc8d9ae5 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 -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 e040b5b8dc14..d1f09dedd3e4 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 -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 abb71e79d667..5b37d398af59 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 -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/BaseLoggerBridgeTest/BaseLoggerBridgeTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/BaseLoggerBridgeTest/BaseLoggerBridgeTest.java index e52434f019c3..9e5357f848d9 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 9e6dc7a4a792..8e98e5ce3c7e 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 e7a90c7466f9..3ddf32f12df0 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 c3f5d7e2062f..541ded5bddfe 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 c6ef5c979539..048cea508ee2 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 -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 -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 -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 -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 -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 -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 -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 -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 -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 -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 -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 -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 -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 -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 -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 -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 -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/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java b/test/jdk/java/lang/System/LoggerFinder/internal/PlatformLoggerBridgeTest/PlatformLoggerBridgeTest.java index ff4f980216f7..01d6233af6d9 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 153a63bbf509..b051931a5531 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 c7f8cb44e688..91a0324f11eb 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 11211c9460b7..b5c657629cb0 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 bb85179471f7..c0663850646f 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 9571d9e8cc2d..3e4305dd4a7e 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 d20c467eeac7..76c24a99cdcc 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 cf563aab82eb..db6319154554 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 6f0bf9db1a86..5096e9c79676 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 cf710c0a4f64..3f4da5686416 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 83024e58c33d..37be43d04266 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; @@ -77,7 +77,9 @@ public static void main(String... args) { doprivClass.delete(); tr = doExec(JAVA_CMD.getAbsolutePath(), "-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/invoke/lambda/LambdaAccessControlTest.java b/test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java index 6435944e7e87..2ab048368980 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 047c128e9d59..ae15cd187b05 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 0fe6a0b64678..2a0d60ca20d4 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 1cf5fa897d5c..9773b9e4e8d6 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 -Xbootclasspath/a:. -Djava.security.manager=allow 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 209ba813a1ee..e9782854828a 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 2d4554fd77df..a2c6197080d1 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 43ffc520be10..0b9508702d0f 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/net/Authenticator/GetAuthenticatorTest.java b/test/jdk/java/net/Authenticator/GetAuthenticatorTest.java index d36236ba32f2..9c4c421ba32f 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 a1488c7961ab..82544d0b5580 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 b66eb60fc9f3..5c60df3a2441 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 0167edec3286..2eda5f0494d8 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 335e769d2e5b..e07743ba9fee 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 8cc81f825a0d..9e973e71de70 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 70f860146cde..b87d21c98213 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 5c0b6619b08f..d36df018b0a2 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 a787be39c963..856454092da9 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 ca5615510c5c..31ac42f67ef4 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 8014d3158b83..69ae5f99fbfd 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 19c4c1572d49..85b5eef1be0a 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 714cf62bffab..7013ba83dee4 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 3d7a30463ba9..6885486c499d 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/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java b/test/jdk/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java index afe2f595d871..043c33d303a4 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 -Xbootclasspath/a:privileged.jar -Djava.security.manager=allow 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 ee77a3d310ce..a48ac19469df 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 79d243e988b7..6074d4cd543a 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 30c6c36d2188..dc3511abb34a 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 37626cf67976..1985799caf19 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/FileChannel/Size.java b/test/jdk/java/nio/channels/FileChannel/Size.java index d06ba81fa51d..fd6e744f03f8 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/nio/channels/SocketChannel/OpenLeak.java b/test/jdk/java/nio/channels/SocketChannel/OpenLeak.java index 135ce9a39012..8d8673355efb 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 a207cd814e94..4cef6cef8936 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 7908d847c052..5a50596d847c 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 9cfc682c956c..2e58c92f5421 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 e165da54fb4b..14cab2054409 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.*; diff --git a/test/jdk/java/rmi/RMISecurityManager/checkPackageAccess/CheckPackageAccess.java b/test/jdk/java/rmi/RMISecurityManager/checkPackageAccess/CheckPackageAccess.java index 93d1ce8427db..657e37f4ad3c 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 bfa12177eb00..e1fbbc342723 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 f0acc02bcc62..217010d2cf52 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 453dfe75e229..480bb8e6064d 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 4d8b22e17d42..8f997afca21d 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 fa438cfeb623..4c883c93362e 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 3509a3fbae5f..68eaf8ee955e 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 0b6dc76a3b0c..b200893434db 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 4df810af015f..e3c02f2e7252 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 2c4bb4d6b9f4..f1de500a9e21 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 26bb6288ce35..c87d25bc2348 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 4b1f4d6e6e79..07baf57e5d3c 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/java/security/BasicPermission/NullOrEmptyName.java b/test/jdk/java/security/BasicPermission/NullOrEmptyName.java index ce7f109d32b7..970d011e64fd 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 7c33b1085d20..7988f19c0a81 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 e1b997983d02..7be2d1e216fe 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 7e7bc77c6174..7ad634c0e4c6 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/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 0465e9ae3d24..756af982ba71 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 2fcf00604543..943983a56096 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 8dd31ad0cb5f..0fedadfcf3b9 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 e85fd7d19337..5a5755146bc8 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 5a6803552772..e959e3efa2a1 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/TimeZone/Bug6912560.java b/test/jdk/java/util/TimeZone/Bug6912560.java index d289e61158e3..524d754fd7d5 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 d87752adb0e2..8bf97f129c77 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/concurrent/Executors/PrivilegedCallables.java b/test/jdk/java/util/concurrent/Executors/PrivilegedCallables.java index 3dd4c11ded58..fe4c980f6736 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 73969d467208..73338770f288 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 f7a160741bed..db2781f94eb3 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 bedd74e10c06..c02f2cdcaab8 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 1a5904832f83..95a03dae2218 100644 --- a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java +++ b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java @@ -41,21 +41,24 @@ * while others also test implementation details. * @build * * @modules java.management - * @run junit/othervm/timeout=1000 JSR166TestCase + * @run junit/othervm/timeout=1000 -Djava.security.manager=allow JSR166TestCase * @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 * --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 * --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 diff --git a/test/jdk/java/util/logging/AnonymousLogger/TestAnonymousLogger.java b/test/jdk/java/util/logging/AnonymousLogger/TestAnonymousLogger.java index 8d4e528fd330..6bc4f1ad8959 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 169732d2663d..0cd836508a6f 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 0d97dbf573e1..f5466097f3f1 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 e97141624129..7fa901d40371 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 705c451db9fd..5a6e24e265a9 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 b99b6a96ac55..f7356cde64b6 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 04ef1f2788d6..455febb7a64a 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 ad9993ba9443..f0796bed901d 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 079d3a44f1da..a8d3240b9768 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 c8d59c1593e1..8c8bc35c24a7 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 ecf7d34880c6..0a19d7699173 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 cc01fa084708..629ff10ee1f5 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 437c863f2aa4..8f2a0f2cba40 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 cf6abc449dd8..814f453f3d53 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 0dba92132bb1..cf57efe1f892 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 35401f8bdd95..5ffba8250ac8 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 501e3124bce6..20fe38248c42 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 6ca2a63de593..6fbe975b5e43 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 ccdbdc9d78e7..b9712b203a37 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 cde2c458a5f2..bc204e8241cf 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 9679e03f6f59..3327b88d54b8 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 5ec160ae807f..a7d4c67e3499 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 757e4f66a8be..6374ef4d2614 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 fe42bd4b41e3..c2c3ea8712fe 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 bde3ef26430a..49f371aa3216 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/ResourceBundleControlProvider/UserDefaultControlTest.java b/test/jdk/java/util/spi/ResourceBundleControlProvider/UserDefaultControlTest.java index 9f4ad590b954..ff0a7954af47 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/java/util/spi/ToolProviderTest.java b/test/jdk/java/util/spi/ToolProviderTest.java index 9a337bc6ce28..b47d4c25aa27 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/imageio/CachePremissionsTest/CachePermissionsTest.java b/test/jdk/javax/imageio/CachePremissionsTest/CachePermissionsTest.java index c101f9d1780d..c64b171a5ef4 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; diff --git a/test/jdk/javax/management/Introspector/AnnotationSecurityTest.java b/test/jdk/javax/management/Introspector/AnnotationSecurityTest.java index 43b466fbdf64..f71427fd9943 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 c757baeaaca5..d702a78ad723 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 1af316f1b50c..b965c72250fe 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 a54030d4c3e6..a4c570058533 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 4e03de3c1078..4eb095957814 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 b999c9ebdf55..aacd62f7f824 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/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 970d678f8db1..6433e3e21c9c 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/javax/swing/JComboBox/8080972/TestBasicComboBoxEditor.java b/test/jdk/javax/swing/JComboBox/8080972/TestBasicComboBoxEditor.java index 205aecc9d875..2fb2391116a8 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 dab2e69a48d3..21ea57ab8d0c 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 6d9a396aa0cf..6c3a0d80b2e7 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 fa379d10fff9..51cd8d040931 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 554c5a446098..c5ed2b7365cd 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 eabb0265c95f..c912079f6e8c 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 95e968d2a0ce..2e86cc34cdc0 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 5fa7c9eaeb92..849e1f82034e 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 f6f3d9746ac8..e8dc909084b9 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 949878e54eba..8cded311045c 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 592044a4ea35..e6ad98ba9279 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 25d4f626d2d5..a872f4c4a116 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 bcafb38a676d..234ec6a71879 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 73a2d4cc865d..cef4ce41bcb7 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 a7cf675c482b..78d6879a9bfa 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 f2b18724d23a..ee0abaab166e 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 2a36634a5fd1..03ca4928f405 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 a2e72391a0a4..03b9dfa1b43b 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 { diff --git a/test/jdk/javax/xml/crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java b/test/jdk/javax/xml/crypto/dsig/SecurityManager/XMLDSigWithSecMgr.java index ca3be869c4da..98c0182a144d 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/javax/xml/jaxp/transform/8004476/XPathExFuncTest.java b/test/jdk/javax/xml/jaxp/transform/8004476/XPathExFuncTest.java index 5680067037a0..bf254f6d33a1 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 b86bcff49009..9a72cbe1a55d 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; diff --git a/test/jdk/jdk/internal/jrtfs/WithSecurityManager.java b/test/jdk/jdk/internal/jrtfs/WithSecurityManager.java index d982300be2af..8078fbc495a1 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/sun/management/PlatformMBeanProviderConstructorCheck.java b/test/jdk/sun/management/PlatformMBeanProviderConstructorCheck.java index 0892e8a5a7f9..b7b4edc8c980 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/net/www/protocol/jrt/WithSecurityManager.java b/test/jdk/sun/net/www/protocol/jrt/WithSecurityManager.java index 97f1105fde81..4a00dd206db9 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; diff --git a/test/jdk/sun/nio/cs/TestSJIS0213_SM.java b/test/jdk/sun/nio/cs/TestSJIS0213_SM.java index fe85d4e4635b..ef61fbc3382b 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 4dd85f490a31..efa7f75314f6 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 ad07f19a6a36..2468ccdfc7f0 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/rmi/runtime/Log/checkLogging/CheckLogging.java b/test/jdk/sun/rmi/runtime/Log/checkLogging/CheckLogging.java index 2b3d2d5b808c..b181c6996ef9 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 a8510df5be11..4a8748ab2532 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.*; diff --git a/test/jdk/sun/security/krb5/auto/AcceptPermissions.java b/test/jdk/sun/security/krb5/auto/AcceptPermissions.java index 00fbced1bab8..172d3ede9ba9 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 095806d51991..fc5d1380a5c0 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 70d8f1c66f60..89f034db809e 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 c4e2b4b8ba91..da547da752b0 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 a2db21317dda..d192526bf4bd 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 e39fa82fb7d6..233cb4e623e7 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 ceea0467c0ef..7191d5baac5b 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 c05ec217551c..2991dcfa5d88 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 598d16b4b4b8..2127256b5ec0 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 d5fd02e09d56..8f53cda2f6ba 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 9490108597c0..ec6234c6bdfc 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 b1a5d83ac762..1246e13fb234 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 765e6e93ab78..d5569f0f3cd7 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 6e359196ac65..146a65054232 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 29656c20f3b0..0639c06b7d8d 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 876627ebfdb8..af1734dcd803 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 2f79646fa48d..c08c224c6200 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 d6707028d96e..14dae5feece1 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 ae0e01e1ad5a..ccf86444564a 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 f3e3465fd277..f251c443c18f 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 70cd50e52c32..e4bed00c7ace 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 b44b2f4a5b97..f009fbb95e56 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 7e045232e3a8..66fd7d88ce44 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 426ed33031c3..16b8cced7338 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 268f698276be..7e6d38d0746d 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 ace601c72335..c37f6d3324ba 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 dfaccbd4c7e1..a9aeb1f0edea 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 4fd239150c14..ab74358fb0f7 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 f64076c14f6f..9792a80de8dc 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 a83222951d90..d57794f1199f 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 48614bc3d7e6..f9f809f0d28f 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 6144853341a6..1689d4c4ed99 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 12373f3b6c5c..ce9f8e9bb638 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 73247a2b3e93..81863f028f9b 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 381efb689427..78cd051835ef 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 5416b04debf9..e7e1374245c2 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 39ca94c2f964..04fbdd00bf44 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 d591f939c25c..7d0f68e4f017 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 004cb99d6013..14352c358da2 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 6c659f470ac2..4b4a6a20a4a3 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 edfe9fdccaf7..6005d88aec4d 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 2d88e274682f..e3e43b72c3d2 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 83d19bc91503..49061f1288dc 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 55eeced8a02a..69ea7275193a 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 7dd8904311a7..59db0a3ed013 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 92bbe83215ad..4b6cb6f14ed0 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 74eca81853ed..8e016f76d9b6 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 ae0c84edba6d..60066f118af0 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 b2e4e31de19f..9a44d8ff0360 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 524f36378bba..c95d27bc3d8c 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 d77efb0dcbfc..9f9ef5dcafa6 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 9662db995d23..62c05ad8cf60 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 a34c6cace20e..ee847c56d877 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 5241391d952b..2e2b9efca42a 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 451a41c3d5b9..ad69bfeb1239 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 b594b3e066e1..08a542b59caf 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 ecbb035c470e..816e76697ced 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 2bbc55552c3f..d99c21d0e568 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 abd2da15e340..ebae28c996c7 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 17a4c5d8d713..a1fc10d6ef6a 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; diff --git a/test/jdk/sun/tools/jstatd/JstatdTest.java b/test/jdk/sun/tools/jstatd/JstatdTest.java index 56c86cbfa075..c603ed1096c4 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(), diff --git a/test/jdk/sun/util/locale/provider/Bug8152817.java b/test/jdk/sun/util/locale/provider/Bug8152817.java index 14363a4a1dfd..d08d67172764 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 */ diff --git a/test/jdk/tools/jlink/SecurityTest.java b/test/jdk/tools/jlink/SecurityTest.java index 7aff0c220c7e..a42eb4dbc5e3 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; diff --git a/test/langtools/ProblemList.txt b/test/langtools/ProblemList.txt index faed5b30d14a..98e600d1d1ee 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/doclint/tool/RunTest.java b/test/langtools/tools/doclint/tool/RunTest.java index 92d26895563b..78415a954418 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; diff --git a/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java b/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java index 85b5d3b28b10..ceedbcb50e5b 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 9165fc0495a4..cc6400a1b38c 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.*;