changeset 56081:eebdf6aa4907

8222363: Update ServerSocket.isBound spec to reflect implementation after close Reviewed-by: dfuchs
author michaelm
date Mon, 26 Aug 2019 11:46:54 +0100
parents 30db6422848b
children 095c2f21dd10
files src/java.base/share/classes/java/net/ServerSocket.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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