summaryrefslogtreecommitdiff
path: root/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-removeSecurityManager.patch
blob: fbbaecd6d239ebe66f1aa0146dc57272da6135e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 {