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

Details

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

    Description


      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: