Integrated: 8364277: (fs) BasicFileAttributes.isDirectory and isOther return true for NTFS directory junctions when links not followed

Brian Burkhalter bpb at openjdk.org
Thu Aug 7 18:38:33 UTC 2025


On Mon, 4 Aug 2025 21:38:34 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Change `BasicFileAttributes` for Windows such that for a directory junction `isOther` returns `true` but all other `is*` methods return `false`. Without this change, `isDirectory` also returns `true`.

This pull request has now been integrated.

Changeset: 02e18711
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/02e187119d0ca94d46e631a174c55db4945f3295
Stats:     236 lines in 6 files changed: 211 ins; 8 del; 17 mod

8364277: (fs) BasicFileAttributes.isDirectory and isOther return true for NTFS directory junctions when links not followed

Reviewed-by: alanb

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

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


More information about the nio-dev mailing list