diff -r 33436f5e3b9d -r 5db317238575 src/java.net.http/share/classes/java/net/http/HttpResponse.java --- a/src/java.net.http/share/classes/java/net/http/HttpResponse.java Tue Feb 13 14:34:00 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/HttpResponse.java Tue Feb 13 14:42:41 2018 +0000 @@ -373,8 +373,8 @@ * // and accumulates lines that match a particular pattern * Pattern pattern = ...; * LineParserSubscriber subscriber = new LineParserSubscriber(pattern); - * HttpResponse> response = client.sendAsync(request, - * BodyHandler.fromLineSubscriber(subscriber, (s) -> s.getMatchingLines(), "\n")).join(); + * HttpResponse> response = client.send(request, + * BodyHandler.fromLineSubscriber(subscriber, s -> s.getMatchingLines(), "\n")); * if (response.statusCode() != 200) { * System.err.printf("ERROR: %d status received%n", response.statusCode()); * } }