You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ch...@apache.org on 2025/01/30 07:48:36 UTC
(lucene) branch main updated: Do not enable security manager on JDK 24+ (#14179)
This is an automated email from the ASF dual-hosted git repository.
chegar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new faec0f82381 Do not enable security manager on JDK 24+ (#14179)
faec0f82381 is described below
commit faec0f823817ca95f1f103d6b9482d26ee75cc7b
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 670f8ef2689..185cd0872a9 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."],