8222363: Update ServerSocket.isBound spec to reflect implementation after close

Reviewed-by: dfuchs
This commit is contained in:
Michael McMahon 2019-08-26 11:46:54 +01:00
parent 04ef527ede
commit ec24017b02

View file

@ -710,6 +710,10 @@ class ServerSocket implements java.io.Closeable {
/**
* Returns the binding state of the ServerSocket.
* <p>
* If the socket was bound prior to being {@linkplain #close closed},
* then this method will continue to return {@code true}
* after the socket is closed.
*
* @return true if the ServerSocket successfully bound to an address
* @since 1.4