RFR: 8066869: Add Closeable::closeUnchecked that is the equivalent of close but throws UncheckedIOException
Brian Burkhalter
bpb at openjdk.org
Thu Jul 6 22:50:53 UTC 2023
On Thu, 6 Jul 2023 22:42:35 GMT, Stuart Marks <smarks at openjdk.org> wrote:
> This is probably reasonable for test code, where it's often acceptable to let exceptions propagate instead of handling them.
Understood.
> Are there other places in the JDK (in library code or in the tests) where `closeUnchecked` can and should be used? If so, maybe they should be updated as well.
Unless it's a matter of further background investigation, I think actually making any such changes would be better handled as a separate issue.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14789#discussion_r1254996175
More information about the core-libs-dev
mailing list