RFR: 8374441: (fs) FileSystemProvider.readAttributesIfExists throws "Not a directory" when element in path is not directory should return null for ENOTDIR (unix) [v3]

Fabian Meumertzheim fmeum at openjdk.org
Mon Jan 5 20:16:22 UTC 2026


> `FileSystemProvider.readAttributesIfExists` now returns `null` for a path with a true prefix that is not a directory rather than throwing `NotDirectoryException`.

Fabian Meumertzheim has updated the pull request incrementally with one additional commit since the last revision:

  Update copyright range

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29013/files
  - new: https://git.openjdk.org/jdk/pull/29013/files/91f4b3ac..868e0f41

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

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/29013.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29013/head:pull/29013

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


More information about the nio-dev mailing list