Integrated: 8365807: (fs) Two-arg UnixFileAttributes.getIfExists should not use exception for control flow
Brian Burkhalter
bpb at openjdk.org
Tue Aug 26 17:45:41 UTC 2025
On Thu, 21 Aug 2025 22:03:40 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)`.
This pull request has now been integrated.
Changeset: 2b44ed70
Author: Brian Burkhalter <bpb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2b44ed70707175f87ba962d8a6ce6bbc2c8737bf
Stats: 57 lines in 3 files changed: 18 ins; 21 del; 18 mod
8365807: (fs) Two-arg UnixFileAttributes.getIfExists should not use exception for control flow
Reviewed-by: alanb
-------------
PR: https://git.openjdk.org/jdk/pull/26889
More information about the nio-dev
mailing list