RFR: 8374441: FileSystemProvider.readAttributesIfExists should return null for ENOTDIR (unix)

Fabian Meumertzheim fmeum at openjdk.org
Thu Jan 1 06:53:42 UTC 2026


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

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

Commit messages:
 - 8374441: FileSystemProvider.readAttributesIfExists should return null for ENOTDIR (unix)

Changes: https://git.openjdk.org/jdk/pull/29013/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29013&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8374441
  Stats: 17 lines in 2 files changed: 16 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