JDK-8278386 : Release Note: Default JDK Compressor Will Be Closed when IOException Is Encountered
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version:
    7u351,8u341,11.0.16-oracle,17.0.4-oracle,18 7u351,8u341,11.0.16-oracle,17.0.4-oracle,18
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2021-12-08
  • Updated: 2022-07-19
  • Resolved: 2022-03-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 18 JDK 7 JDK 8
11.0.16-oracleResolved 17.0.4-oracleResolved 18Resolved 7u351Resolved 8u341Resolved
Description
`DeflaterOutputStream.close()` and `GZIPOutputStream.finish()` methods have been modified to close out the associated default JDK compressor before propagating a Throwable up the stack.
`ZIPOutputStream.closeEntry()` method has been modified to close out the associated default JDK compressor before propagating an IOException, not of type ZipException, up the stack.