RFR: 8154364: Files.isSameFile() throws NoSuchFileException with broken symbolic links [v2]

Brian Burkhalter bpb at openjdk.org
Wed Aug 13 16:56:52 UTC 2025


> This request proposes to broaden the definition of which paths are considered to be the same by `java.nio.file.Files.isSameFile()`. A new test is added to cover many comparisons.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8154364: Remove assertion that two non-existent files with equal normalized paths are equal

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/26736/files
  - new: https://git.openjdk.org/jdk/pull/26736/files/a7a8b416..1aac01aa

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26736&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26736&range=00-01

  Stats: 4 lines in 2 files changed: 1 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/26736.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26736/head:pull/26736

PR: https://git.openjdk.org/jdk/pull/26736


More information about the nio-dev mailing list