RFR: 8365626: (fs) Improve handling of broken links in Files.isSameFile() (win)
Brian Burkhalter
bpb at openjdk.org
Fri Sep 5 15:38:11 UTC 2025
On Fri, 5 Sep 2025 12:43:17 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> Files.readAttributes will return a WindowsFileAttributes object so can't have equals accessing the file system.
I don't see where `equals` is accessing the file system. It invokes `WindowsFileAttributes.isSameFile` which uses the volume serial number and file index. Or maybe I missed the point of this comment.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27079#discussion_r2325422644
More information about the nio-dev
mailing list