src/java.base/share/classes/java/util/zip/ZipOutputStream.java
Print this page
*** 580,590 ****
if (umtime > UPPER_UNIXTIME_BOUND ||
uatime > UPPER_UNIXTIME_BOUND ||
uctime > UPPER_UNIXTIME_BOUND) {
elen += 36; // NTFS time total 36 bytes
} else {
! elen += 9; // headid(2) + sz(2) + flag(1) + mtime (4)
}
}
writeShort(elen);
byte[] commentBytes;
if (e.comment != null) {
--- 580,592 ----
if (umtime > UPPER_UNIXTIME_BOUND ||
uatime > UPPER_UNIXTIME_BOUND ||
uctime > UPPER_UNIXTIME_BOUND) {
elen += 36; // NTFS time total 36 bytes
} else {
! elen += 5; // headid(2) + sz(2) + flag(1)
! if (e.mtime != null)
! elen += 4; // + mtime (4)
}
}
writeShort(elen);
byte[] commentBytes;
if (e.comment != null) {