RFR: 8350685: java/lang/System/SecurityManagerWarnings.java fails with --enable-preview

Sean Mullan mullan at openjdk.org
Mon Mar 3 13:43:52 UTC 2025


On Mon, 3 Mar 2025 13:33:05 GMT, Sean Mullan <mullan at openjdk.org> wrote:

> Please review this fix to a test that fails when run with --enable-preview. This fix is to add all the necessary utility classes imported by the test to the JAR file, and not just the test classes.

test/jdk/java/lang/System/SecurityManagerWarnings.java line 75:

> 73:     }
> 74: 
> 75:     // When -Djava.security.manager is not set, or set to "allow",

The comment was incorrect. Setting "allow" now causes the JVM to fail with an error.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23864#discussion_r1977535785


More information about the core-libs-dev mailing list