jdk/src/share/classes/java/util/zip/ZipEntry.java
changeset 8197 e45f21c2a40b
parent 5506 202f599c92aa
child 8552 f36470084574
equal deleted inserted replaced
7867:f83cd8bd35c6 8197:e45f21c2a40b
   108      * @param time the entry modification time in number of milliseconds
   108      * @param time the entry modification time in number of milliseconds
   109      *             since the epoch
   109      *             since the epoch
   110      * @see #getTime()
   110      * @see #getTime()
   111      */
   111      */
   112     public void setTime(long time) {
   112     public void setTime(long time) {
   113         // Same value as defined in sun.jkernel.DownloadManager.KERNEL_STATIC_MODTIME
   113         this.time = javaToDosTime(time);
   114         // to avoid direct reference to DownoadManager class.  Need to revisit
       
   115         // if this is needed any more (see comment in the DownloadManager class)
       
   116         final int KERNEL_STATIC_MODTIME = 10000000;
       
   117         BootClassLoaderHook hook = BootClassLoaderHook.getHook();
       
   118         if (hook != null && hook.isCurrentThreadPrefetching()) {
       
   119             // fix for bug 6625963: we bypass time calculations while Kernel is
       
   120             // downloading bundles, since they aren't necessary and would cause
       
   121             // the Kernel core to depend upon the (very large) time zone data
       
   122             this.time = KERNEL_STATIC_MODTIME;
       
   123         } else {
       
   124             this.time = javaToDosTime(time);
       
   125         }
       
   126     }
   114     }
   127 
   115 
   128     /**
   116     /**
   129      * Returns the modification time of the entry, or -1 if not specified.
   117      * Returns the modification time of the entry, or -1 if not specified.
   130      * @return the modification time of the entry, or -1 if not specified
   118      * @return the modification time of the entry, or -1 if not specified