Emmanuel Bourg pushed to branch master at Debian Java Maintainers / saaj


Commits:
f4bd6a59 by Vladimir Petko at 2026-02-09T19:34:35+13:00
d/p/03-java25-security-manager.patch: Remove calls to SecurityManager (Closes: 
#1108590).

- - - - -
d761acb8 by Vladimir Petko at 2026-02-09T19:34:42+13:00
d/maven.properties: remove Security Manager option.

- - - - -
3458bbb0 by Vladimir Petko at 2026-02-09T19:34:43+13:00
changelog

- - - - -


4 changed files:

- debian/changelog
- debian/maven.properties
- + debian/patches/03-java25-security-manager.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+saaj (1.4.0-5) UNRELEASED; urgency=medium
+
+  * d/{maven.properties, p/03-java25-security-manager.patch}: Remove
+    calls to SecurityManager to resolve Java 25 ftbfs
+    (Closes: #1108590).
+
+ -- Vladimir Petko <[email protected]>  Mon, 09 Feb 2026 19:16:49 
+1300
+
 saaj (1.4.0-4) unstable; urgency=medium
 
   * Fixed the build failure with Java 21 (Closes: #1052568)


=====================================
debian/maven.properties
=====================================
@@ -7,5 +7,3 @@ spec.bundle.version=${project.version}
 spec.bundle.symbolic-name=${project.artifactId}
 spec.implementation.version=${project.version}
 spec.specification.version=${project.version}
-
-argLine=-Djava.security.manager=allow


=====================================
debian/patches/03-java25-security-manager.patch
=====================================
@@ -0,0 +1,42 @@
+Description: Remove calls to setSecurityManager
+ SecurityManager was removed in Java 25.
+ Remove calls setting the Security Manager.
+Author: Vladimir Petko <[email protected]>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1108590
+Forwarded: not-needed
+Last-Update: 2026-02-09
+
+--- a/src/test/java/javax/xml/soap/test/SAAJFactoryTest.java
++++ b/src/test/java/javax/xml/soap/test/SAAJFactoryTest.java
+@@ -130,8 +130,6 @@
+                            String jdkConfClass,
+                            String spiClass) {
+
+-        // ensure setup may be done ...
+-        System.setSecurityManager(null);
+
+         if (systemProperty != null) {
+             System.setProperty("javax.xml.soap.MessageFactory", 
systemProperty);
+@@ -184,22 +182,14 @@
+
+             // unsafe; not running:
+             cleanResource(jdkFile);
+-            System.setSecurityManager(null);
+         }
+     }
+
+     @Test
+     public void testFactoryDiscoverySM() throws IOException {
+-        enableSM();
+         testFactoryDiscovery();
+     }
+
+-    private void enableSM() {
+-        System.setSecurityManager(null);
+-        System.setProperty("java.security.policy", classesDir + 
"javax/xml/soap/test.policy");
+-        System.setSecurityManager(new SecurityManager());
+-    }
+-
+     protected MessageFactory factory() throws Throwable {
+         try {
+             MessageFactory factory = MessageFactory.newInstance();


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 01-java10-compatibility.patch
 02-activation-dependency.patch
+03-java25-security-manager.patch



View it on GitLab: 
https://salsa.debian.org/java-team/saaj/-/compare/3a3436ed6f4d3aa7d6485dc92bbeffaf1ed2b336...3458bbb0d391f2a52da3a622ffb4526ba0994f47

-- 
View it on GitLab: 
https://salsa.debian.org/java-team/saaj/-/compare/3a3436ed6f4d3aa7d6485dc92bbeffaf1ed2b336...3458bbb0d391f2a52da3a622ffb4526ba0994f47
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
pkg-java-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to