RFR: 8154364: Files.isSameFile() throws NoSuchFileException with broken symbolic links [v2]

ExE Boss duke at openjdk.org
Thu Aug 14 07:12:15 UTC 2025


On Wed, 13 Aug 2025 16:53:12 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>>> normalize collapses the path so I'm concerned about foo/.. in one and bar/.. in the other. They may collapse down to the equal paths, which may not be the right answer.
>> 
>> Good point.
>
> Use of normalized paths removed in 1aac01a.

Note that `Path::equals` on **Windows** is also wrong when the path contains case‑sensitive directories and the path element isn’t case‑sensitively equal in those directories.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26736#discussion_r2275680441


More information about the nio-dev mailing list