summaryrefslogtreecommitdiff
path: root/dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch
blob: d604d3a199c90d7ba20b494bbc229bc29c4c05da (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 #946907

--- a/jaxb-api-test/src/test/java/jakarta/xml/bind/test/JAXBContextTest.java
+++ b/jaxb-api-test/src/test/java/jakarta/xml/bind/test/JAXBContextTest.java
@@ -150,7 +150,6 @@ public class JAXBContextTest {
     ) {
 
         // ensure setup may be done ...
-        System.setSecurityManager(null);
 
         if (systemProperty != null) {
             System.setProperty("jakarta.xml.bind.JAXBContextFactory", systemProperty);
@@ -240,7 +239,6 @@ public class JAXBContextTest {
 
         // unsafe; not running:
         cleanResource(jaxbPropsFile);
-        System.setSecurityManager(null);
     }
 
     @Test
@@ -263,9 +261,7 @@ public class JAXBContextTest {
 
 
     private void enableSM() {
-        System.setSecurityManager(null);
         System.setProperty("java.security.policy", classesDir + "jakarta/xml/bind/test.policy");
-        System.setSecurityManager(new SecurityManager());
     }
 
     private void cleanResource(Path resource) {