Integrated: 7904152: jtreg tests fail with openjdk 25

Vladimir Petko vpetko at openjdk.org
Mon Feb 16 08:33:54 UTC 2026


On Fri, 13 Feb 2026 06:44:02 GMT, Vladimir Petko <vpetko at openjdk.org> wrote:

> The policy tests try to set the Security manager on the command-line causing the following error:
> 
> java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.
>        at java.lang.System.initPhase3([java.base at 25.0.2](mailto:java.base at 25.0.2)/System.java:1969)
> 
> The last supported JDK that allows setting the security manager is 21, so I have added `JDK21HOME` in line with other JDK-specific variables. 
> The alternative is to name the variable JDK23HOME as the security manager was disabled in openjdk-24[1]
> 
> [1] https://openjdk.org/jeps/486

This pull request has now been integrated.

Changeset: da8892fb
Author:    Vladimir Petko <vpetko at openjdk.org>
Committer: Christian Stein <cstein at openjdk.org>
URL:       https://git.openjdk.org/jtreg/commit/da8892fb26a51fc5d4c3d4e3be74384aa29f64ce
Stats:     32 lines in 4 files changed: 23 ins; 0 del; 9 mod

7904152: jtreg tests fail with openjdk 25

Reviewed-by: cstein

-------------

PR: https://git.openjdk.org/jtreg/pull/315


More information about the jtreg-dev mailing list