You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2025/09/23 06:00:35 UTC
(lucene) branch branch_9_12 updated: Do not enable security manager on JDK 24+ (#14179)
This is an automated email from the ASF dual-hosted git repository.
jainankitk pushed a commit to branch branch_9_12
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9_12 by this push:
new 7e8dee1c2a5 Do not enable security manager on JDK 24+ (#14179)
7e8dee1c2a5 is described below
commit 7e8dee1c2a5a46223497abbf52169c95e43095db
Author: Chris Hegarty <62...@users.noreply.github.com>
AuthorDate: Thu Jan 30 07:48:30 2025 +0000
Do not enable security manager on JDK 24+ (#14179)
This commit avoids setting the security manager on JDK 24+ - since it is not longer possible to enable it in JDK 24+
This is the minimum required to start testing with JDK 24 EA.
---
gradle/testing/randomization.gradle | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gradle/testing/randomization.gradle b/gradle/testing/randomization.gradle
index c6fc6f8450a..a451d84bee0 100644
--- a/gradle/testing/randomization.gradle
+++ b/gradle/testing/randomization.gradle
@@ -76,7 +76,9 @@ allprojects {
[propName: 'tests.asserts', value: "true", description: "Enables or disables assertions mode."],
[propName: 'tests.infostream', value: false, description: "Enables or disables infostream logs."],
[propName: 'tests.leaveTemporary', value: false, description: "Leave temporary directories after tests complete."],
- [propName: 'tests.useSecurityManager', value: true, description: "Control security manager in tests.", buildOnly: true],
+ [propName: 'tests.useSecurityManager',
+ value: { -> rootProject.ext.runtimeJavaVersion <= JavaVersion.VERSION_23 ? 'true' : 'false' },
+ description: "Control security manager in tests.", buildOnly: true],
// component randomization
[propName: 'tests.codec', value: "random", description: "Sets the codec tests should run with."],
[propName: 'tests.directory', value: "random", description: "Sets the Directory implementation tests should run with."],