RFR: 8364277: (fs) BasicFileAttributes.isDirectory and isOther return true for NTFS directory junctions when links not followed [v4]
Brian Burkhalter
bpb at openjdk.org
Wed Aug 6 17:39:25 UTC 2025
> 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: 1) improve isDirectory[Junction] per Reviewer comments; 2) restructure native test code to remove the dreaded gotos
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26631/files
- new: https://git.openjdk.org/jdk/pull/26631/files/ebd6f415..481bdbcc
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26631&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26631&range=02-03
Stats: 100 lines in 3 files changed: 31 ins; 35 del; 34 mod
Patch: https://git.openjdk.org/jdk/pull/26631.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26631/head:pull/26631
PR: https://git.openjdk.org/jdk/pull/26631
More information about the nio-dev
mailing list