Re: RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException

Remi Forax forax at univ-mlv.fr
Sat Jul 8 09:39:10 UTC 2023


oops, sorry, my bad, sending an email when you are deprived of sleep does not lead to a good outcome. 

Remi


On July 7, 2023 4:40:53 PM UTC, Brian Burkhalter <bpb at openjdk.org> wrote:
>On Fri, 7 Jul 2023 16:23:37 GMT, Remi Forax <forax at univ-mlv.fr> wrote:
>
>> I'm not a big fan of hiding exceptions, why not wrapping the IOException in an UncheckedIOException ?
>> 
>> So closeUnchecked() means close and throw an unchecked exception if an exception occurs.
>
>I am confused by this comment. That is what `closeUnchecked()` is specified to do.
>
>-------------
>
>PR Comment: https://git.openjdk.org/jdk/pull/14789#issuecomment-1625669306
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230708/c934757a/attachment-0001.htm>


More information about the core-libs-dev mailing list