On Tue, 1 Dec 2026 08:43:17 GMT, Alan Bateman <[email protected]> wrote:
>> Lance Andersen has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> Address typos and use Platform::isWindows
>
> src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java line 3124:
>
>> 3122: long headerSize = (long)CENHDR + nlen + clen + elen +
>> elen64 + elenNTFS + elenEXTT;
>> 3123: if (headerSize > 0xFFFF ) {
>> 3124: throw new ZipException("invalid CEN header (bad header
>> size)");
>
> The close method invokes sync before it closes the channel. Do you mind
> checking this as it looks like the ch.close will be skipped if sync throws
> ZipException (or any exception so applies to other writing ops too).
Yes, there is some work to do here. I will create a separate issue for this as
it goes beyond the scope of this fix. Thank you for pointing this out
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/34136#discussion_r4757958531