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

Brian Burkhalter bpb at openjdk.org
Wed May 14 17:51:34 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: Improve test summary

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25191/files
  - new: https://git.openjdk.org/jdk/pull/25191/files/0908e753..2344b7da

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

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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