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

Remove "throws IOException" from HttpExchange.close()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b81
    • CPU:
      unknown
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: