git: openjdk/jdk: master: 8374441: (fs) FileSystemProvider.readAttributesIfExists throws "Not a directory" when element in path is not directory should return null for ENOTDIR (unix)

Alan Bateman alanb at openjdk.org
Tue Jan 6 08:10:35 UTC 2026


Changeset: 2fbc4162
Branch: master
Author:    Fabian Meumertzheim <fmeum at openjdk.org>
Committer: Alan Bateman <alanb at openjdk.org>
Date:      2026-01-06 08:09:42 +0000
URL:       https://git.openjdk.org/jdk/commit/2fbc4162e808f14b6114499f49db3e6ef1590f24

8374441: (fs) FileSystemProvider.readAttributesIfExists throws "Not a directory" when element in path is not directory should return null for ENOTDIR (unix)

Reviewed-by: alanb

! src/java.base/unix/classes/sun/nio/fs/UnixFileAttributes.java
! test/jdk/java/nio/file/Files/NotADirectory.java



More information about the jdk-changes mailing list