[jdk17u] RFR: 8338696: (fs) BasicFileAttributes.creationTime() falls back to epoch if birth time is unavailable (Linux)
Severin Gehwolf
sgehwolf at openjdk.org
Wed Sep 4 16:52:57 UTC 2024
Clean backport to improve compatibility with JDK 17 versions which didn't support birth time (`17.0.10` and earlier). I.e. on those systems now last-modified-time is being returned when the statx syscall didn't fill in the birth time (is not supported for this filesystem). In `17.0.11` the epoch (or `0`) is returned for filesystems not supporting creation time. Proposing as a critical fix so as to get it into 17.0.13.
CSR for 21-pool and 17-pool is the same as for JDK head. It's waiting on approval from the CSR lead.
-------------
Commit messages:
- 8338696: (fs) BasicFileAttributes.creationTime() falls back to epoch if birth time is unavailable (Linux)
Changes: https://git.openjdk.org/jdk17u/pull/395/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u&pr=395&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8338696
Stats: 21 lines in 1 file changed: 12 ins; 0 del; 9 mod
Patch: https://git.openjdk.org/jdk17u/pull/395.diff
Fetch: git fetch https://git.openjdk.org/jdk17u.git pull/395/head:pull/395
PR: https://git.openjdk.org/jdk17u/pull/395
More information about the jdk-updates-dev
mailing list