RFR: 8322166: Files.isReadable/isWritable/isExecutable expensive when file does not exist

Brian Burkhalter bpb at openjdk.org
Fri Dec 15 22:55:47 UTC 2023


Add `isReadable`, `isWritable`, and `isExecutable` methods to `AbstractFileSystemProvider` and overrides to `UnixFileSystemProvider` and use these in the respective `Files` methods when the provider is an `AbstractFileSystemProvider`.

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

Commit messages:
 - 8322166: Files.isReadable/isWritable/isExecutable expensive when file does not exist

Changes: https://git.openjdk.org/jdk/pull/17133/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17133&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8322166
  Stats: 107 lines in 6 files changed: 83 ins; 9 del; 15 mod
  Patch: https://git.openjdk.org/jdk/pull/17133.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17133/head:pull/17133

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


More information about the nio-dev mailing list