RFR: 8191963: Path.equals() and File.equals() return true for two different files on Windows

Alan Bateman alanb at openjdk.org
Thu Jun 26 06:53:31 UTC 2025


On Wed, 25 Jun 2025 19:32:58 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> For the purposes of this request, the equals methods operate on the string representation of the abstract pathname and do not interact with the file system.

Exactly, so I think the first step here has to validate that where we ended up in WindowsPath.compareTo is correct.

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

PR Comment: https://git.openjdk.org/jdk/pull/25788#issuecomment-3007367048


More information about the core-libs-dev mailing list