[jdk17u-dev] RFR: 8316304: (fs) Add support for BasicFileAttributes.creationTime() for Linux
Severin Gehwolf
sgehwolf at openjdk.org
Tue Aug 26 14:06:48 UTC 2025
On Tue, 26 Aug 2025 13:50:47 GMT, Stanislav Bashkyrtsev <duke at openjdk.org> wrote:
> My point is that the methods used to be consistent: you pass createTime when changing it through `BasicFileAttributeView`, and you get the same result in `BasicFileAttributes.creationTime()`. I don't know how this worked before, but it did. I think it makes sense to keep the API consistent, or at least mention the inconsistencies in the docs.
There was a release note:
https://bugs.openjdk.org/browse/JDK-8331874
It "worked" before by accident. Creation time returned the last modified time before. Use last modified time (over creation time) and you should have the same consistency as before.
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2175#issuecomment-3224305871
More information about the jdk-updates-dev
mailing list