RFR: 8191963: Path.equals() and File.equals() return true for two different files on Windows [v3]
Brian Burkhalter
bpb at openjdk.org
Mon Oct 20 15:57:08 UTC 2025
On Mon, 20 Oct 2025 15:33:13 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> 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 five additional commits since the last revision:
>>
>> - 8191963: Make legacy behavior be the default
>> - Merge
>> - 8191963: Add system property to enable legacy behavior
>> - Merge
>> - 8191963: Path.equals() and File.equals() return true for two different files on Windows
>
> src/java.base/windows/classes/java/io/WinNTFileSystem.java line 660:
>
>> 658: }
>> 659: }
>> 660: return n1 - n2;
>
> Can WindowsPath have a public common method to compare the string versions? (To avoid code duplication).
That would be good, but I don't believe there is anything in common now so as to avoid loading IO forcing loading NIO.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25788#discussion_r2445430482
More information about the core-libs-dev
mailing list