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

Fabian Meumertzheim fmeum at openjdk.org
Thu Jan 1 17:23:52 UTC 2026


On Wed, 31 Dec 2025 21:14:29 GMT, Fabian Meumertzheim <fmeum at openjdk.org> wrote:

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

The linux-x64 debug build job consistently fails with "No space left on device", which doesn't appear to be related to this PR.

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

PR Comment: https://git.openjdk.org/jdk/pull/29013#issuecomment-3703922943


More information about the nio-dev mailing list