JDK 9 rejects zip files where the modified day or month is 0 (JDK-8184940)

Liam Miller-Cushon cushon at google.com
Wed Jul 19 18:29:39 UTC 2017


Hello,

While testing JDK 9 we noticed that zip archives containing zeroed-out
dates are no longer accepted. These archives are arguably invalid, but some
zip implementations produce them and there's a significant number of them
in the wild. I filed a bug with more details:
https://bugs.openjdk.java.net/browse/JDK-8184940

Would you consider relaxing the JDK 9 behaviour to continue to handle
zeroed-out dates, to avoid a breaking change and ensure it can read the
same legacy zip and jar files as earlier releases?

Thanks,
Liam


More information about the core-libs-dev mailing list