RFR: 8277087: ZipException: zip END header not found at ZipFile#Source.findEND [v2]
Sergey Bylokhov
serb at openjdk.java.net
Tue Nov 16 00:40:17 UTC 2021
On Sun, 14 Nov 2021 16:14:54 GMT, Martin Buchholz <martin at openjdk.org> wrote:
>> Sergey Bylokhov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update EmptyComment.java
>
> test/jdk/java/util/zip/ZipOutputStream/EmptyComment.java line 88:
>
>> 86: byte[] data = baos.toByteArray();
>> 87: // Since the comment is empty this will be two last bytes
>> 88: int pos = data.length - ZipFile.ENDHDR + ZipFile.ENDCOM;
>
> I would probably check that I could find Phil Katz' initials at data.length - ZipFile.ENDHDR
Done.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6380
More information about the core-libs-dev
mailing list