Integrated: 8356678: (fs) Files.readAttributes should map ENOTDIR to NoSuchFileException where possible (unix)

Brian Burkhalter bpb at openjdk.org
Thu May 15 14:50:03 UTC 2025


On Mon, 12 May 2025 19:36:22 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> 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`.

This pull request has now been integrated.

Changeset: 3df8ca1e
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3df8ca1ebaf3539363efd569ba9487f5d985117d
Stats:     175 lines in 4 files changed: 171 ins; 1 del; 3 mod

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

Reviewed-by: alanb, cstein

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

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


More information about the nio-dev mailing list