summaryrefslogtreecommitdiff
path: root/dev-java/jaxb-api/files/jaxb-api-2.3.3-dropSecurityManager.patch
blob: 902cbf74818b0cba752c17ee24260d4af4d1e099 (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 #946906

--- a/jaxb-api-test/src/test/java/javax/xml/bind/test/JAXBContextTest.java
+++ b/jaxb-api-test/src/test/java/javax/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("javax.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 + "javax/xml/bind/test.policy");
-        System.setSecurityManager(new SecurityManager());
     }
 
     private void cleanResource(Path resource) {