[jdk11u-dev] RFR: 8253952: Refine ZipOutputStream.putNextEntry() to recalculate ZipEntry's compressed size

Antonio Vieiro duke at openjdk.org
Wed Jun 12 08:36:41 UTC 2024


Backport of [JDK-8253952](https://bugs.openjdk.org/browse/JDK-8253952)

Clean backport with a minor conflict resolved. Tests pass cleanly.

I have a test case that shows differences in behaviour between Amazon Corretto 11.0.23.9-1 (built with `--zlib=system`) and adoptium-jdk-11.0.23+9 (built with `--zlib=bundled`)  on [Fedora 40 with system-wide zlib-ng](https://discussion.fedoraproject.org/t/f40-change-proposal-transitioning-to-zlib-ng-as-a-compatible-replacement-for-zlib-system-wide/95807#!). Let me know if you think it's worth adding the test case to the codebase.

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

Commit messages:
 - Backport 60159cff407255bfa546d98d423e8ab2e83eb0e3

Changes: https://git.openjdk.org/jdk11u-dev/pull/2765/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2765&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8253952
  Stats: 234 lines in 4 files changed: 223 ins; 0 del; 11 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/2765.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/2765/head:pull/2765

PR: https://git.openjdk.org/jdk11u-dev/pull/2765


More information about the jdk-updates-dev mailing list