RFR: 8365807: (fs) Two-arg UnixFileAttributes.getIfExists should not use exception for control flow [v4]
Brian Burkhalter
bpb at openjdk.org
Tue Aug 26 17:45:40 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
Tier 1-3 jobs passed on Unix.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26889#issuecomment-3225121237
More information about the nio-dev
mailing list