RFR: 8191963: Path.equals() and File.equals() return true for two different files on Windows [v2]
Alan Bateman
alanb at openjdk.org
Sat Oct 4 07:37:49 UTC 2025
On Thu, 2 Oct 2025 20:13:38 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Replace logic in `java.io.WinNTFileSystems.compare(File,File)` with that from `sun.nio.fs.WindowsPath.compareTo(Path)`.
>
> Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>
> - 8191963: Add system property to enable legacy behavior
> - Merge
> - 8191963: Path.equals() and File.equals() return true for two different files on Windows
> > [...] system property to restore long standing behavior.
>
> Added in [a63e13e](https://github.com/openjdk/jdk/commit/a63e13e1e086d299a4e1326606f3322a42cb5977).
@naotoj, @xuemingshen-oracle, do you have any thoughts on the compatibility impact?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25788#issuecomment-3367995346
More information about the core-libs-dev
mailing list