RFR: 8364277: (fs) BasicFileAttributes.isDirectory and isOther return true for NTFS directory junctions when links not followed
Brian Burkhalter
bpb at openjdk.org
Mon Aug 4 21:45:21 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`.
-------------
Commit messages:
- 8364277: Add sub-test to existing test
- 8364277: (fs) BasicFileAttributes.isDirectory and isOther return true for NTFS directory junctions when links not followed
Changes: https://git.openjdk.org/jdk/pull/26631/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26631&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8364277
Stats: 218 lines in 4 files changed: 206 ins; 1 del; 11 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