RFR: 8375061: Multiple jpackage tool providers may share the same logging config

Alexey Semenyuk asemenyuk at openjdk.org
Tue Jan 13 16:31:45 UTC 2026


On Mon, 12 Jan 2026 19:03:25 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:

> The patch addresses two issues:
>  - Each jpackage tool provider instance should have its own logging config instance.
>  - The test lib should be able to keep output from concurrently running tests isolated from each other.
> 
> These two fixes are bundled together because it is impossible to verify the jpackage implementation fix without fixing the test lib.
> 
> The test lib fix replaces all inheritable thread-local variables with scoped values. It fixes the interleaved output issue and simplifies the implementation.
> 
> Supplementary changes:
>  - jdk.jpackage.internal.cli.Main: when creating a `java.io.PrintWriter` from a `java.io.PrintStream`, copy the charset instead of using the default one.

Resolved merge conflict. 
Fixed a regression in `JPackageCommand.isWithToolProvider()` and added a corresponding unit test.

@sashamatveev, please review again.

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

PR Comment: https://git.openjdk.org/jdk/pull/29175#issuecomment-3745266129


More information about the core-libs-dev mailing list