Zip filesystem provider in JDK 8u75: does it violate the contract for BasicFileAttributes' .creationTime()?
Alan Bateman
Alan.Bateman at oracle.com
Mon Feb 22 12:02:27 UTC 2016
On 22/02/2016 11:25, Francis Galiegue wrote:
> The .creationTime() of any Path from a zip-backed FileSystem returns null.
>
> The doc of all FileTime returning methods of the interface says that:
>
> ----
> If the file system implementation does not support a time stamp to
> indicate the time of <xxxx> then this method returns an implementation
> specific default value, typically a FileTime representing the epoch
> (1970-01-01T00:00:00Z).
> ----
>
Yes, this does seems to be a bug in the zip provider's implementation of
lastAccessTime and creationTime. I'll create a bug for this now.
-Alan.
More information about the nio-dev
mailing list