summaryrefslogtreecommitdiff
path: root/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-removeSecurityManager.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-removeSecurityManager.patch')
-rw-r--r--dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-removeSecurityManager.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-removeSecurityManager.patch b/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-removeSecurityManager.patch
new file mode 100644
index 000000000000..fbbaecd6d239
--- /dev/null
+++ b/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-removeSecurityManager.patch
@@ -0,0 +1,30 @@
+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 {