RFR: 8154364: (fs) Files.isSameFile() throws NoSuchFileException with broken symbolic links [v8]
Alan Bateman
alanb at openjdk.org
Sat Aug 16 07:07:16 UTC 2025
On Fri, 15 Aug 2025 20:43:41 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> This request proposes to broaden the definition of which paths are considered to be the same by `java.nio.file.Files.isSameFile()`. A new test is added to cover many comparisons.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8154364: Put changes to Misc.java in platform-specific blocks
src/java.base/unix/classes/sun/nio/fs/UnixFileAttributes.java line 88:
> 86: static UnixFileAttributes getIfExists(UnixPath path)
> 87: throws UnixException
> 88: {
It would be nice if getIfExists(path) could be implemented as getIfExists(path, true) but it can't because the former doesn't need an exception when the file doesn't exists where the latter does. Something to look into sometime.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26736#discussion_r2280283317
More information about the nio-dev
mailing list