RFR: 8191963: Path.equals() and File.equals() return true for two different files on Windows [v2]
Brian Burkhalter
bpb at openjdk.org
Thu Oct 9 00:11:03 UTC 2025
On Mon, 6 Oct 2025 16:12:49 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> Would it be safer to make the new behavior as opt-in, as well as making the system property to be windows specific `windowsCompatibleEquals` or something? Making it as the default might be a bit risky to me.
Opt-in might mean that no one will ever do it, but it would make the compatibility risk zero. The suggested property name is good, or it could be `jdk.io.File.windowsNIOCompatibleEquals`.
> Also, IIUC the test is comparing cases between 'I', '\u0130' and '\u0131'. Probably we need to cross test with 'i' too.
Acknowledged.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25788#issuecomment-3383609797
More information about the core-libs-dev
mailing list