Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6852033 Inputs/Outputs methods to make common I/O tasks easy to do
  3. JDK-8066869

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

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Future Project
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • None


      This would be useful for cases where close is invoked explicitly, esp. with resources that are open for reading.

      The proposed API isn't useful for try-with-resources as it will continue to invoke close.

            bpb Brian Burkhalter
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: