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

Alan Bateman alanb at openjdk.java.net
Wed Jun 8 06:54:21 UTC 2022


On Wed, 8 Jun 2022 00:21:21 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> 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

Updated version looks good, did you do any performance checking compared to the existing code?

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

Marked as reviewed by alanb (Reviewer).

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


More information about the nio-dev mailing list