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

(fs) BasicFileAttributes.creationTime() falls back to epoch if birth time is unavailable (Linux)

XMLWordPrintable

    • b13
    • generic
    • linux

        The fix of JDK-8316304 changed the native layer to use the statx(2) system call to obtain the birth time. However, if the birth time is unavailable, for example if it is not supported by the file system, then the creation time is set to the epoch (1970-01-01T00:00:00Z). Prior to this change, the creation time was always set to the last modified time. The code should be changed such that creationTime() returns the last modified time if the birth time is not set.

              bpb Brian Burkhalter
              bpb Brian Burkhalter
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: