RFR: 7904152: jtreg tests fail with openjdk 25 [v4]

Vladimir Petko vpetko at openjdk.org
Sun Feb 15 22:07:45 UTC 2026


On Sun, 15 Feb 2026 21:23:26 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
>
> Vladimir Petko has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix: use correct setup-java version tag.

Hi, Thank you for review!

I have cherry-picked commits that update the build environment from https://github.com/openjdk/jtreg/pull/313 but did not touch any of the functional changes related to compact source. 

The pipeline in this PR uses `export` https://github.com/openjdk/jtreg/pull/313/changes#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88R48, but as far as I can see setting env https://github.com/openjdk/jtreg/pull/315/changes#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88R47 works - the pipeline runs [PolicyTest](https://productionresultssa2.blob.core.windows.net/actions-results/baa9e861-5b3a-493c-84db-b7b846f509cd/workflow-job-run-58abbedb-46ac-501e-97ae-0472f25eecde/logs/job/job-logs.txt?rsct=text%2Fplain&se=2026-02-15T22%3A14%3A41Z&sig=XvaSKcLFFNkPRe%2Bz%2BJqypdJmXqSAgAoOQhML7SnOpsY%3D&ske=2026-02-15T23%3A14%3A39Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2026-02-15T19%3A14%3A39Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-11-05&sp=r&spr=https&sr=b&st=2026-02-15T22%3A04%3A36Z&sv=2025-11-05)

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

PR Comment: https://git.openjdk.org/jtreg/pull/315#issuecomment-3905267704


More information about the jtreg-dev mailing list