Skip to content

Commit

Permalink
Do not enable security manager on JDK 24+ (#14179)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ChrisHegarty committed Jan 30, 2025
1 parent 6357460 commit 8b4c500
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gradle/testing/randomization.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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."],
Expand Down

0 comments on commit 8b4c500

Please sign in to comment.