Description
FULL PRODUCT VERSION :
java version " 1.7.0_17 "
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
OS X 10.7.5
A DESCRIPTION OF THE PROBLEM :
IWhen I try to get the creation file attribute of a file on OS X Lion using Java nio it returns the modification time instead:
BasicFileAttributes attr = Files.readAttributes(path, BasicFileAttributes.class);
System.out.println( " Creation time: " + attr.creationTime());
I know that some file systems don't support file creation timestamps but HFSP does so I think that BasicFileAttributes.creationTime method should return the right value on OS X.
REPRODUCIBILITY :
This bug can be reproduced always.
java version " 1.7.0_17 "
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
OS X 10.7.5
A DESCRIPTION OF THE PROBLEM :
IWhen I try to get the creation file attribute of a file on OS X Lion using Java nio it returns the modification time instead:
BasicFileAttributes attr = Files.readAttributes(path, BasicFileAttributes.class);
System.out.println( " Creation time: " + attr.creationTime());
I know that some file systems don't support file creation timestamps but HFSP does so I think that BasicFileAttributes.creationTime method should return the right value on OS X.
REPRODUCIBILITY :
This bug can be reproduced always.