commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COMPRESS-458) Deal with lastAccessTime and creationTime in ZipArchiveEntry
Date Thu, 05 Jul 2018 13:03:00 GMT
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)

Mime
View raw message