RFR: 8364277: (fs) BasicFileAttributes.isDirectory and isOther return true for NTFS directory junctions when links not followed [v2]
Brian Burkhalter
bpb at openjdk.org
Tue Aug 5 17:48:59 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) Add and use package scope isDirectoryJunction(); 2) Remove explicit delete of junction from test
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26631/files
- new: https://git.openjdk.org/jdk/pull/26631/files/c5794766..cf9eab46
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26631&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26631&range=00-01
Stats: 12 lines in 3 files changed: 8 ins; 3 del; 1 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 core-libs-dev
mailing list