[jdk17u-dev] RFR: 8316304: (fs) Add support for BasicFileAttributes.creationTime() for Linux

Goetz Lindenmaier goetz at openjdk.org
Wed Aug 27 09:13:58 UTC 2025


On Tue, 26 Aug 2025 14:01:38 GMT, Severin Gehwolf <sgehwolf 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.

The release note does not mention 17, though.

-------------

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2175#issuecomment-3227412063


More information about the jdk-updates-dev mailing list