6939260: (fs) BasicFileAttributes.lastModifiedTime() should return last modified time with higher precision

Chris Hegarty chris.hegarty at oracle.com
Fri Jan 18 03:21:04 PST 2013


Looks fine to me.

I admit that I'm not familiar with "_POSIX_C_SOURCE >= 200809L", but I 
guess this is just checking that the nano second time is available on 
more recent glic/posix versions on Linux.

-Chris.

On 17/01/2013 18:12, Alan Bateman wrote:
>
> File timestamps are currently returned with second resolution on
> Solaris/Linux, this is because this is what stat(2) and fstat(2) give
> us. I'd like to update this to use the nanosecond values where available.
>
> The webrev with the changes is here:
>
> http://cr.openjdk.java.net/~alanb/6939260/webrev/
>
> Thanks,
>
> Alan.


More information about the nio-dev mailing list