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

Jaikiran Pai jpai at openjdk.org
Tue Mar 4 11:37:01 UTC 2025


On Tue, 4 Mar 2025 10:15:18 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> I believe the proposed change here to package the necessary class files in the JAR file, so that they are available when launching java with that JAR file in the classpath, is correct.

I just realized one thing - this `OutputAnalyzer` is a test library class. So `test.classes` directory won't always contain this library class (jtreg sometimes compiles it into a separate directory and that behaviour is non-determinstic). So you might have to include additional paths when constructing that JAR file.

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

PR Comment: https://git.openjdk.org/jdk/pull/23864#issuecomment-2697219880


More information about the core-libs-dev mailing list