RFR: 8191963: Path.equals() and File.equals() return true for two different files on Windows [v2]
Naoto Sato
naoto at openjdk.org
Mon Oct 6 16:15:46 UTC 2025
On Sat, 4 Oct 2025 07:35:12 GMT, Alan Bateman <alanb 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?
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.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25788#issuecomment-3372554382
More information about the core-libs-dev
mailing list