RFR: 8191963: Path.equals() and File.equals() return true for two different files on Windows
Brian Burkhalter
bpb at openjdk.org
Thu Jun 12 21:17:40 UTC 2025
Replace logic in `java.io.WinNTFileSystems.compare(File,File)` with that from `sun.nio.fs.WindowsPath.compareTo(Path)`.
-------------
Commit messages:
- 8191963: Path.equals() and File.equals() return true for two different files on Windows
Changes: https://git.openjdk.org/jdk/pull/25788/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25788&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8191963
Stats: 42 lines in 2 files changed: 34 ins; 0 del; 8 mod
Patch: https://git.openjdk.org/jdk/pull/25788.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25788/head:pull/25788
PR: https://git.openjdk.org/jdk/pull/25788
More information about the core-libs-dev
mailing list