RFR: 7904152: jtreg tests fail with openjdk 25 [v3]
Vladimir Petko
vpetko at openjdk.org
Sun Feb 15 21:03:04 UTC 2026
> 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
Vladimir Petko has updated the pull request incrementally with five additional commits since the last revision:
- chore: remove empty line.
- Introduce `JDK25HOME` variable
- Fix path to pre-installed JDK 25
- chore: add JDK21HOME variable in workflow
- Install JDK 25 and 21
-------------
Changes:
- all: https://git.openjdk.org/jtreg/pull/315/files
- new: https://git.openjdk.org/jtreg/pull/315/files/cd2772d4..12574e71
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jtreg&pr=315&range=02
- incr: https://webrevs.openjdk.org/?repo=jtreg&pr=315&range=01-02
Stats: 16 lines in 2 files changed: 9 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jtreg/pull/315.diff
Fetch: git fetch https://git.openjdk.org/jtreg.git pull/315/head:pull/315
PR: https://git.openjdk.org/jtreg/pull/315
More information about the jtreg-dev
mailing list