RFR: 8365807: (fs) Two-arg UnixFileAttributes.getIfExists should not use exception for control flow [v2]
Brian Burkhalter
bpb at openjdk.org
Fri Aug 22 16:27:08 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: Make all [f]stat*0 functions void; remove stat2
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26889/files
- new: https://git.openjdk.org/jdk/pull/26889/files/a4545b9f..7ea1b084
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26889&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26889&range=00-01
Stats: 37 lines in 3 files changed: 1 ins; 17 del; 19 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