RFR: 8365807: (fs) Two-arg UnixFileAttributes.getIfExists should not use exception for control flow [v4]
Brian Burkhalter
bpb at openjdk.org
Tue Aug 26 15:44:51 UTC 2025
> In the Unix implementation of `sun.nio.fs`, change
>
> 1. `UnixFileAttributes.getIfExists(UnixPath,boolean)` to use the system call success status and `errno` for control flow; and
> 2. `UnixFileAttributes.getIfExists(UnixPath)` to simply return `UnixFileAttributes.getIfExists(UnixPath,true)`.
Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
8365807: Fix minor style nits
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26889/files
- new: https://git.openjdk.org/jdk/pull/26889/files/91bb2e41..31ad86f7
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26889&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26889&range=02-03
Stats: 5 lines in 2 files changed: 0 ins; 2 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/26889.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26889/head:pull/26889
PR: https://git.openjdk.org/jdk/pull/26889
More information about the nio-dev
mailing list