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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • core-libs
    • b07
    • generic
    • generic
    • Verified

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: