RFR: 8365807: (fs) Two-arg UnixFileAttributes.getIfExists should not use exception for control flow [v4]

Alan Bateman alanb at openjdk.org
Tue Aug 26 15:47:35 UTC 2025


On Tue, 26 Aug 2025 15:44:51 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

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

Marked as reviewed by alanb (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/26889#pullrequestreview-3156274435


More information about the nio-dev mailing list