JDK-8191872 : (fs) UnixNativeDispatcher conditionally compiles in support for high precision timestamps
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-11-24
  • Updated: 2017-12-15
  • Resolved: 2017-12-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10 b36Fixed
Related Reports
Relates :  
Description
UnixNativeDispatcher.c current has this:

#if (_POSIX_C_SOURCE >= 200809L) || defined(__solaris__)
    (*env)->SetLongField(env, attrs, attrs_st_atime_nsec, (jlong)buf->st_atim.tv_nsec);
    (*env)->SetLongField(env, attrs, attrs_st_mtime_nsec, (jlong)buf->st_mtim.tv_nsec);
    (*env)->SetLongField(env, attrs, attrs_st_ctime_nsec, (jlong)buf->st_ctim.tv_nsec);
#endif

but this dates back to older build platforms and can be cleaned up.
Comments
java/nio/file/Files/SetLastModifiedTime.java passed when run in a folder on a FAT32 drive in VirtualBox.
12-12-2017

Another issue on OS X has been reported here: http://mail.openjdk.java.net/pipermail/nio-dev/2017-December/004632.html
04-12-2017