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

Socket spec should clarify what getInetAddress/getPort/etc return after the Socket is closed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b07
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        JDK-4672570 added a clarification to the Socket specification to indicate that isConnected and isBound continue to return true after a connected or bound socket is closed.

        There are 6 other methods that should also be examined: getPort, getInetAddress, getRemoteSocketAddress, getLocalPort, getLocalAddress, getLocalSocketAddress. This methods also continue to return the local/remote address after the socket is closed.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                chegar Chris Hegarty
                Reporter:
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: