mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8222363: Update ServerSocket.isBound spec to reflect implementation after close
Reviewed-by: dfuchs
This commit is contained in:
parent
04ef527ede
commit
ec24017b02
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue