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

Typo in javadoc of java.util.zip.ZipEntry#setTime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • None
    • core-libs

      The javadoc of java.util.zip.ZipEntry#setTime(long time) currently states:

      "If the entry is output to a ZIP file or ZIP file formatted output stream the last modification time set by this method will be stored into the date and time fields of the zip file entry and encoded in standard MS-DOS date and time format. The default TimeZone is used to convert the epoch time to the MS-DOS data and time."

      The last sentence should instead be ".... MS-DOS date and time"

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: