# HG changeset patch
# User chegar
# Date 1521636139 0
# Node ID 65a4ac71b2bf3aad0481666a11c69c3828347a02
# Parent 254f6c8277f93adbcf7f711a3eeae2bd202f4be8
http-client-branch: minor HttpClient.send exception correction
diff -r 254f6c8277f9 -r 65a4ac71b2bf src/java.net.http/share/classes/java/net/http/HttpClient.java
--- a/src/java.net.http/share/classes/java/net/http/HttpClient.java Wed Mar 21 12:38:23 2018 +0000
+++ b/src/java.net.http/share/classes/java/net/http/HttpClient.java Wed Mar 21 12:42:19 2018 +0000
@@ -535,7 +535,6 @@
*
The returned completable future completes exceptionally with:
*
* - {@link IOException} - if an I/O error occurs when sending or receiving
- * - {@link IllegalArgumentException} - if the request method is not supported
* - {@link SecurityException} - If a security manager has been installed
* and it denies {@link java.net.URLPermission access} to the
* URL in the given request, or proxy if one is configured.
@@ -548,6 +547,7 @@
* @param responseBodyHandler the response body handler
* @param pushPromiseHandler push promise handler, may be null
* @return a {@code CompletableFuture>}
+ * @throws IllegalArgumentException if the request method is not supported
*/
public abstract CompletableFuture>
sendAsync(HttpRequest request,