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

Alexey Semenyuk asemenyuk at openjdk.org
Tue Jan 13 16:37:44 UTC 2026


> 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.

Alexey Semenyuk has updated the pull request incrementally with one additional commit since the last revision:

  BasicTest: rollback accidental change.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29175/files
  - new: https://git.openjdk.org/jdk/pull/29175/files/2d32616c..5c56b928

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29175&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29175&range=01-02

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/29175.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29175/head:pull/29175

PR: https://git.openjdk.org/jdk/pull/29175


More information about the core-libs-dev mailing list