8222363: Update ServerSocket.isBound spec to reflect implementation after close
authormichaelm
Mon, 26 Aug 2019 11:46:54 +0100
changeset 57877 eebdf6aa4907
parent 57876 30db6422848b
child 57879 095c2f21dd10
8222363: Update ServerSocket.isBound spec to reflect implementation after close Reviewed-by: dfuchs
src/java.base/share/classes/java/net/ServerSocket.java
--- a/src/java.base/share/classes/java/net/ServerSocket.java	Mon Aug 26 09:15:43 2019 +0200
+++ b/src/java.base/share/classes/java/net/ServerSocket.java	Mon Aug 26 11:46:54 2019 +0100
@@ -710,6 +710,10 @@
 
     /**
      * 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