--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/WebSocket.java Tue Jan 23 14:10:14 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/WebSocket.java Wed Jan 24 12:26:15 2018 +0000
@@ -419,6 +419,12 @@
* {@code CompletionStage} returned from it completes exceptionally,
* the resulting behaviour is undefined.
*
+ * @apiNote Returning a {@code CompletionStage} that never completes,
+ * effectively disables the automatic closure of the output.
+ *
+ * @implSpec The default implementation of this method returns
+ * {@code null}, signaling that the output may be closed.
+ *
* @param webSocket
* the WebSocket on which the message has been received
* @param statusCode