summaryrefslogtreecommitdiff
path: root/dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2025-08-25 11:01:55 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2025-09-25 13:07:30 +0200
commit4ef82d7a6c6f0ad7b727747342f3fe9b5b52ddd8 (patch)
treee3203dba01bfb8c36244b55a1076953b24ad617d /dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch
parente5f87eb327bd68d5eee1a86853b23b4937d69dc6 (diff)
downloadgentoo-4ef82d7a6c6f0ad7b727747342f3fe9b5b52ddd8.tar.gz
gentoo-4ef82d7a6c6f0ad7b727747342f3fe9b5b52ddd8.tar.bz2
gentoo-4ef82d7a6c6f0ad7b727747342f3fe9b5b52ddd8.zip
dev-java/jaxb-api: 4.0.2 drop SecurityManager
improves the patch which was not sufficient Closes: https://bugs.gentoo.org/946907 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/43557 Closes: https://github.com/gentoo/gentoo/pull/43557 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch')
-rw-r--r--dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch26
1 files changed, 22 insertions, 4 deletions
diff --git a/dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch b/dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch
index 3d78b40cdaba..d604d3a199c9 100644
--- a/dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch
+++ b/dev-java/jaxb-api/files/jaxb-api-4.0.2-dropSecurityManager.patch
@@ -1,10 +1,28 @@
-# java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
-# https://github.com/jakartaee/jaxb-api/issues/303#issuecomment-1962748051
+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
-@@ -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("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.setSecurityManager(null);
System.setProperty("java.security.policy", classesDir + "jakarta/xml/bind/test.policy");
- System.setSecurityManager(new SecurityManager());
}