RFR: 8280881: (fs) UnixNativeDispatcher.close0 may throw UnixException [v2]
Brian Burkhalter
bpb at openjdk.java.net
Fri Feb 18 17:24:51 UTC 2022
On Wed, 16 Feb 2022 00:44:37 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Re-specify `sun.nio.fs.UnixNativeDispatcher.close0()` to throw `sun.nio.fs.UnixException` and modify callers either to ignore it or to rethrow it as an `IOException`, as appropriate.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8280881: Correct previous version; make Linux changes
So in finally blocks where throwing an `IOException` because of a `close()` failure would mask any exception thrown in the `try` block it would be
close(fd, null);
which would mean ignoring the `UnixException` of `close()`?
-------------
PR: https://git.openjdk.java.net/jdk/pull/7467
More information about the nio-dev
mailing list