Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-458

Deal with lastAccessTime and creationTime in ZipArchiveEntry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.17
    • None
    • Archivers

    Description

      With Java8 ZipEntry has new getters and setters for the last access time and file creation time are backed by at least one of the extra fields ExtendedTimeStamp or NTFS (potentially by both of them). ZipArchiveEntry inherits those methods when running on Java8+ and users expect them to work, which they don't in our implementation. Unfortunately the internal implementation of the setters seems to modify the extra data in ZipEntry directly so the extra fields are not visible to ZipArchiveEntry which shadows the extra data held by the super class

      Unless we want to fiddle with reflection a proper implementation will only be possible once Compress requires Java8. Once we are there we should override the methods to properly create extra fields ourselves in the setters and parse them inside the getters.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bodewig Stefan Bodewig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: