Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6402096

Remove "throws IOException" from HttpExchange.close()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: