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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 7
    • Affects Version/s: 7
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: