RFR: 8374441: (fs) FileSystemProvider.readAttributesIfExists throws "Not a directory" when element in path is not directory should return null for ENOTDIR (unix) [v2]
Alan Bateman
alanb at openjdk.org
Mon Jan 5 19:29:58 UTC 2026
On Mon, 5 Jan 2026 16:18:38 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`.
>
> Fabian Meumertzheim has updated the pull request incrementally with one additional commit since the last revision:
>
> Address review comments
test/jdk/java/nio/file/Files/NotADirectory.java line 25:
> 23:
> 24: /* @test
> 25: * @bug 8356678 8374441
Thanks for the update, I think it looks okay. Can you update the end copyright date on the test? I don't have any other comments.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29013#discussion_r2662569066
More information about the nio-dev
mailing list