commit: 45dd8dec3ed4af6c0ee3f24983c4d967fe5677e5 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Mon Aug 25 08:08:07 2025 +0000 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> CommitDate: Thu Sep 25 11:07:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45dd8dec
dev-java/jaxb-api: 2.3.3-r2 drop SecurityManager improves the patch which was not sufficient Closes: https://bugs.gentoo.org/946906 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/43557 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> .../files/jaxb-api-2.3.3-dropSecurityManager.patch | 24 ++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/dev-java/jaxb-api/files/jaxb-api-2.3.3-dropSecurityManager.patch b/dev-java/jaxb-api/files/jaxb-api-2.3.3-dropSecurityManager.patch index 36fed49987b4..902cbf74818b 100644 --- a/dev-java/jaxb-api/files/jaxb-api-2.3.3-dropSecurityManager.patch +++ b/dev-java/jaxb-api/files/jaxb-api-2.3.3-dropSecurityManager.patch @@ -1,8 +1,28 @@ +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 -@@ -265,7 +265,6 @@ public class JAXBContextTest { +@@ -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.setSecurityManager(null); System.setProperty("java.security.policy", classesDir + "javax/xml/bind/test.policy"); - System.setSecurityManager(new SecurityManager()); }
