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

Brian Burkhalter bpb at openjdk.org
Thu Jul 6 20:15:02 UTC 2023


On Thu, 6 Jul 2023 20:07:56 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add a default method `java.io.Closeable::closeUnchecked` which is equivalent to `Closeable::close` except that it instead throws `java.io.UncheckedIOException`.

A CSR will follow if there is agreement on the concept.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14789#issuecomment-1624248529


More information about the core-libs-dev mailing list