On Tue, 4 Mar 2025 10:15:18 GMT, Jaikiran Pai <j...@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

Reply via email to