Hello,

Please provide a failing unit test, then we can see exactly what we're
dealing with.

You can do this as a PR on GitHub which should fail on Java 8 and it sounds
like it will pass on 25. Our GH CI is set up to run on all Java LTS
versions so it should show up.

Thank you,
Gary

On Wed, Nov 19, 2025, 13:25 Ilya Basin <[email protected]> wrote:

> Hi List.
> Perhaps it was discusssed already, but I couldn't find it.
>
> We still have software running on java 8 and java.util.zip.ZipFile can't
> open small zips if some entries have huge uncompressed size. Same archives
> can be opened on java 24 without problem. This happens with zips created
> with ZipArchiveOutputStream, if repacked with 7zip it works even with java
> 8.
>
> I see that both 7zip and Commons enable zip64 extensions in the entries,
> but 7zip doesn't create the zip64 headers in the central directory.
>
> For same input data, if I pause the debugger at the beginning of
> ZipArchiveOutputStream.writeZip64CentralDirectory() and clear the
> "hasUsedZip64" flag, the file can be opened by java 8!
>
> What do you think? Can we add a quirk to omit Zip64CentralDirectory if the
> resulting file would be small enough?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to