mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
improves the patch which was not sufficient Closes: https://bugs.gentoo.org/946906 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/43557 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
31 lines
963 B
Diff
31 lines
963 B
Diff
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) {
|