JDK-8210899 : (zipfs) ZipFileSystem.EntryOutputStreamCRC32 mistakenly set the crc32 value into size field
Type:Bug
Component:core-libs
Sub-Component:java.nio
Affected Version:11,12
Priority:P3
Status:Closed
Resolution:Fixed
Submitted:2018-09-18
Updated:2021-11-19
Resolved:2018-09-19
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.
The changeset for JDK-8034802 has a "typo" in EntryOutputStreamCRC32.close() method, in which it mistakenly sets the crc32 value into "size" field.
Comments
Fix Request
This resolves the regression caused by JDK-8034802 that is already backported. Patch applies cleanly to 11u. New test fails without product fix, and passes with it. Additionally, jdk/nio/zipfs tests pass.