src/java.base/share/classes/java/util/zip/ZipOutputStream.java
changeset 50955 1acfd2f56d72
parent 50238 a9307f400f5a
child 58242 94bb65cb37d3
equal deleted inserted replaced
50954:f85092465b0c 50955:1acfd2f56d72
   580             if (umtime > UPPER_UNIXTIME_BOUND ||
   580             if (umtime > UPPER_UNIXTIME_BOUND ||
   581                 uatime > UPPER_UNIXTIME_BOUND ||
   581                 uatime > UPPER_UNIXTIME_BOUND ||
   582                 uctime > UPPER_UNIXTIME_BOUND) {
   582                 uctime > UPPER_UNIXTIME_BOUND) {
   583                 elen += 36;         // NTFS time total 36 bytes
   583                 elen += 36;         // NTFS time total 36 bytes
   584             } else {
   584             } else {
   585                 elen += 9;          // headid(2) + sz(2) + flag(1) + mtime (4)
   585                 elen += 5;          // headid(2) + sz(2) + flag(1)
       
   586                 if (e.mtime != null)
       
   587                     elen += 4;      // + mtime (4)
   586             }
   588             }
   587         }
   589         }
   588         writeShort(elen);
   590         writeShort(elen);
   589         byte[] commentBytes;
   591         byte[] commentBytes;
   590         if (e.comment != null) {
   592         if (e.comment != null) {