Remove "throws IOException" from HttpExchange.close()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 6
    • Affects Version/s: 6
    • Component/s: core-libs
    • b81
    • unknown
    • generic

      It is not necessary for the HttpExchange.close() method to throw an IOException.
      An application knows that an exchange has terminated successfully if sendResponseHeaders()
      returns ok, and if the entire response body gets written without an exception being thrown.
      The purpose of HttpExchange.close() is primarily to clean up resources, and it does not
      need an exception.

            Assignee:
            Michael McMahon
            Reporter:
            Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: