mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Closes: https://bugs.gentoo.org/946904 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/43518 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
31 lines
1008 B
Diff
31 lines
1008 B
Diff
bug #946904
|
|
--- a/api/src/test/java/javax/xml/soap/test/SAAJFactoryTest.java
|
|
+++ b/api/src/test/java/javax/xml/soap/test/SAAJFactoryTest.java
|
|
@@ -101,7 +101,6 @@ public class SAAJFactoryTest {
|
|
String spiClass) {
|
|
|
|
// ensure setup may be done ...
|
|
- System.setSecurityManager(null);
|
|
|
|
if (systemProperty != null) {
|
|
System.setProperty("javax.xml.soap.MessageFactory", systemProperty);
|
|
@@ -154,7 +153,6 @@ public class SAAJFactoryTest {
|
|
|
|
// unsafe; not running:
|
|
cleanResource(jdkFile);
|
|
- System.setSecurityManager(null);
|
|
}
|
|
}
|
|
|
|
@@ -165,9 +163,7 @@ public class SAAJFactoryTest {
|
|
}
|
|
|
|
private void enableSM() {
|
|
- System.setSecurityManager(null);
|
|
- System.setProperty("java.security.policy", classesDir + "javax/xml/soap/test.policy");
|
|
- System.setSecurityManager(new SecurityManager());
|
|
+ // no-op
|
|
}
|
|
|
|
protected MessageFactory factory() throws Throwable {
|