gentoo-ebuilds/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-removeSecurityManager.patch
Volkmar W. Pogatzki 72b65b1fb7
dev-java/jakarta-xml-soap-api: remove SecurityManager
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>
2025-09-25 13:17:03 +02:00

30 lines
1,008 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 {