git: openjdk/jdk: master: 8356678: (fs) Files.readAttributes should map ENOTDIR to NoSuchFileException where possible (unix)

Brian Burkhalter bpb at openjdk.org
Thu May 15 14:49:22 UTC 2025


Changeset: 3df8ca1e
Branch: master
Author:    Brian Burkhalter <bpb at openjdk.org>
Date:      2025-05-15 14:47:02 +0000
URL:       https://git.openjdk.org/jdk/commit/3df8ca1ebaf3539363efd569ba9487f5d985117d

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

Reviewed-by: alanb, cstein

! src/java.base/unix/classes/sun/nio/fs/UnixFileAttributeViews.java
! src/java.base/unix/classes/sun/nio/fs/UnixFileSystem.java
! src/java.base/unix/classes/sun/nio/fs/UnixFileSystemProvider.java
+ test/jdk/java/nio/file/Files/NotADirectory.java



More information about the jdk-changes mailing list