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

Brian Burkhalter bpb at openjdk.org
Wed May 14 02:18:51 UTC 2025


On Tue, 13 May 2025 23:53:38 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`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8356678: Add more checks in copy and move; beef up test

The `jdk_nio` tests pass on Linux and macOS for fce26e5.

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

PR Comment: https://git.openjdk.org/jdk/pull/25191#issuecomment-2878436939


More information about the nio-dev mailing list