RFR: 8286160: (fs) Files.exists returns unexpected results with C:\pagefile.sys because it's not readable [v2]

Brian Burkhalter bpb at openjdk.java.net
Wed Jun 8 00:21:21 UTC 2022


> If in `WindosFileSystemProvider.checkAccess(Path obj, AccessMode... modes)` the sub-test `checkReadAccess(WindowsPath)` fails and no modes are specified, then try to determine file existence by reading the file's attributes.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8286160: Move check for existence with no modes specifieds

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/9045/files
  - new: https://git.openjdk.java.net/jdk/pull/9045/files/5082b94d..c39b6ede

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=9045&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=9045&range=00-01

  Stats: 25 lines in 1 file changed: 9 ins; 12 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/9045.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/9045/head:pull/9045

PR: https://git.openjdk.java.net/jdk/pull/9045


More information about the nio-dev mailing list