RFR: 8356678: (fs) Files.readAttributes should map ENOTDIR to NoSuchFileException where possible (unix) [v2]

Brian Burkhalter bpb at openjdk.org
Tue May 13 23:53:38 UTC 2025


> Treat `ENOTDIR` as causing a `NoSuchFileException` instead of a `FileSystemExcception` in some places in order to handle cases such as a regular file named, for example, `foo/bar`.

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

  8356678: Add more checks in copy and move; beef up test

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25191/files
  - new: https://git.openjdk.org/jdk/pull/25191/files/3c90a689..fce26e50

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

  Stats: 95 lines in 2 files changed: 70 ins; 4 del; 21 mod
  Patch: https://git.openjdk.org/jdk/pull/25191.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25191/head:pull/25191

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


More information about the nio-dev mailing list