Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8231174

(fs) FileTime should have 100ns resolution (win)

    Details

    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      x86_64
    • OS:
      windows

      Description

      A DESCRIPTION OF THE PROBLEM :
      WindowsFileAttributes truncates file time stamps to microseconds, even though it reads from the OS timestamps with a higher resolution (100ns on NTFS). Since there is now FileTime.from(Instant), this is no longer necessary.

      Expected: getting a file time stamp through Java on Windows accurately reports the full file system timestamp, including the 100ns part on NTFS.

      Justification: this is important for Java programs that need to get or produce file time stamps identical to those produced by external programs.

      (In 8181493 the motivation was to have identical timestamps to external "diff". In my case, it's having the same timestamps in JGit as in the C implementation of git.)


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bpb Brian Burkhalter
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: