This is an automated email from the ASF dual-hosted git repository.
uschindler pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 7784bf19c5b Do not enable security manager on JDK 24+ (#14179) (#3284)
7784bf19c5b is described below
commit 7784bf19c5b0309f30eae4ac2e8414532835c823
Author: Uwe Schindler <[email protected]>
AuthorDate: Mon Mar 24 14:56:48 2025 +0100
Do not enable security manager on JDK 24+ (#14179) (#3284)
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.
Co-authored-by: Chris Hegarty
<[email protected]>
---
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 63c177a6400..61e0183ddc7 100644
--- a/gradle/testing/randomization.gradle
+++ b/gradle/testing/randomization.gradle
@@ -92,7 +92,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."],