[jdk21u-dev] RFR: 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset [v2]

Jan Kratochvil jkratochvil at openjdk.org
Wed Nov 12 21:32:38 UTC 2025


> Multithreaded handling of ZIP files can throw an exception.
> 
> This backport is far from clean. The last commit resolves the conflicts.
> 
> The backport would be a little cleaner if there was backported as a pre-requisite JDK-8321156. But given there is [a backward compatibility concern](https://bugs.openjdk.org/browse/JDK-8321156?focusedId=14630523&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14630523) I have not backported it.
> 
> (jdk25 already contains it), this jdk21, [jdk17](https://github.com/openjdk/jdk17u-dev/pull/3720).

Jan Kratochvil has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'devmaster' into 8347712
 - resolve conflicts
 - 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset
   8355975: ZipFile uses incorrect Charset if another instance for the same ZIP file was constructed with a different Charset
   
   Co-authored-by: Eirik Bjørsnøs <eirbjo at openjdk.org>
   Reviewed-by: eirbjo, lancea, redestad, alanb

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

Changes:
  - all: https://git.openjdk.org/jdk21u-dev/pull/1949/files
  - new: https://git.openjdk.org/jdk21u-dev/pull/1949/files/1752517b..f1e51cdc

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1949&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1949&range=00-01

  Stats: 99288 lines in 3682 files changed: 57621 ins; 21258 del; 20409 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1949.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1949/head:pull/1949

PR: https://git.openjdk.org/jdk21u-dev/pull/1949


More information about the jdk-updates-dev mailing list