Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6303183

Support NTFS and Unix-style timestamps for entries in Zip files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 6
    • core-libs
    • None
    • b94
    • generic
    • generic
    • Verified

      It is a source of repeated confusion that the timestamps stored in Zip files
      are the ancient DOS timestamps with only 2 (!) seconds granularity.

      Modern systems have timestamp granularity of seconds or milliseconds.

      It is disturbing that archiving/unarchiving files in zip files causes the
      timestamp to be rounded to the nearest 2 seconds, causing (mild) loss of user data,
      and breaking makefiles and other programs relying on precise timestamps.

      There are extensions to the zip file format supporting specific file systems
      and their more precise timestamps. It would be good for Java to support these
      extensions, even though it would mean that zip files generated on Unix systems would
      look a little different from zip files generated on Windows systems.

            sherman Xueming Shen
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: