RFR: 8371697: test/jdk/java/nio/file/FileStore/Basic.java fails after 8360887 on linux [v2]

SendaoYan syan at openjdk.org
Sat Nov 15 02:36:36 UTC 2025


> Hi all,
> 
> I found that FileStore.supportsFileAttributeView("dos") return false, but Files.getFileAttributeView(file, viewClass) return none null, cause test/jdk/java/nio/file/FileStore/Basic.java fails on some linux-aarch64 machines.
> 
> This PR add check supportsFileAttributeView before return FileAttributeView in function getFileAttributeView.

SendaoYan has updated the pull request incrementally with two additional commits since the last revision:

 - Check "haveView == supported" only on AIX
 - Revert "8371697: FileStore.getFileAttributeView("dos") should return null if unavailable"
   
   This reverts commit f83b081532b800226bdc92259154f36839991767.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28281/files
  - new: https://git.openjdk.org/jdk/pull/28281/files/f83b0815..e11bc85d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28281&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28281&range=00-01

  Stats: 33 lines in 2 files changed: 5 ins; 21 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/28281.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28281/head:pull/28281

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


More information about the nio-dev mailing list