File 0003-Security-manager-does-not-exist-in-java-24.patch of Package collaboraoffice
From 2d18e701d67782a7803e2de1faf59999be0c2c95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch>
Date: Thu, 18 Dec 2025 17:38:18 +0100
Subject: [PATCH 3/3] Security manager does not exist in java >= 24
Change-Id: I2ce66375cfb5fe94afca96cd9079fe3749599949
---
configure.ac | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 013d33958286..0a0d1e5ae792 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9214,10 +9214,11 @@ if test "$ENABLE_JAVA" != "" -a "$cross_compiling" != "yes"; then
if test "$_jdk_ver" -lt 10800; then
AC_MSG_ERROR([JDK is too old, you need at least 8 ($_jdk_ver < 10800)])
fi
- dnl TODO: Presumably, the Security Manager will not merely be disallowed, but be
- dnl completely removed in some Java version > 18 (see
- dnl <https://openjdk.java.net/jeps/411> "Deprecate the Security Manager for Removal"):
- if test "$_jdk_ver" -ge 180000; then
+ dnl The Security Manager is disallowed since Java 18 (see
+ dnl <https://openjdk.java.net/jeps/411> "Deprecate the Security Manager for Removal")
+ dnl and completely removed since Java 24 (see
+ dnl <https://openjdk.org/jeps/486> "JEP 486: Permanently Disable the Security Manager"):
+ if test "$_jdk_ver" -ge 180000 && test "$_jdk_ver" -lt 240000; then
JDK_SECURITYMANAGER_DISALLOWED=TRUE
fi
--
2.52.0