You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2018/07/05 13:03:00 UTC

[jira] [Created] (COMPRESS-458) Deal with lastAccessTime and creationTime in ZipArchiveEntry

Stefan Bodewig created COMPRESS-458:
---------------------------------------

             Summary: Deal with lastAccessTime and creationTime in ZipArchiveEntry
                 Key: COMPRESS-458
                 URL: https://issues.apache.org/jira/browse/COMPRESS-458
             Project: Commons Compress
          Issue Type: Improvement
          Components: Archivers
    Affects Versions: 1.17
            Reporter: Stefan Bodewig


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)