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

Brian Burkhalter bpb at openjdk.java.net
Thu Jun 9 16:34:15 UTC 2022


On Mon, 6 Jun 2022 22:28:47 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.

This pull request has now been integrated.

Changeset: d482d7f5
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d482d7f5b99e89185471c05cde797f13405c32f2
Stats:     47 lines in 2 files changed: 33 ins; 3 del; 11 mod

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

Reviewed-by: alanb

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

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


More information about the nio-dev mailing list