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

Alan Bateman alanb at openjdk.org
Thu Aug 7 16:13:57 UTC 2025


On Thu, 7 Aug 2025 00:45:20 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`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8364277: Revert change to BuildTestLib.gmk; move @SuppressWarnings to correct place in FileUtils.java

I don't have any other comments. For the FileUtil test infra then we can probably replace the JNI with FFM codes at some point.

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

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26631#pullrequestreview-3097818857


More information about the nio-dev mailing list