RFR: 8191963: Path.equals() and File.equals() return true for two different files on Windows [v2]
Brian Burkhalter
bpb at openjdk.org
Tue Oct 14 21:02:02 UTC 2025
On Mon, 6 Oct 2025 16:12:49 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>>> > [...] 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?
>
>> > > [...] 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?
>
> 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.
>
> Also, IIUC the test is comparing cases between 'I', '\u0130' and '\u0131'. Probably we need to cross test with 'i' too.
@naotoj Thanks for the comments.
> Would it be safer to make the new behavior as opt-in,
Commit 53caf9e changes it to opt-in.
> as well as making the system property to be windows specific
Also done in 53caf9e.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25788#issuecomment-3403596720
More information about the core-libs-dev
mailing list