branch | http-client-branch |
changeset 56071 | 3353cb42b1b4 |
parent 56036 | 89a688549f5d |
child 56076 | 9a2855e0a796 |
--- a/test/jdk/java/net/httpclient/ConcurrentResponses.java Mon Feb 05 15:51:09 2018 +0000 +++ b/test/jdk/java/net/httpclient/ConcurrentResponses.java Mon Feb 05 17:18:26 2018 +0000 @@ -217,6 +217,9 @@ // Muck any data beyond the give limit, since there shouldn't // be any of interest to the HTTP Client. for (ByteBuffer buffer : buffers) { + if (buffer.isReadOnly()) + continue; + if (buffer.limit() != buffer.capacity()) { final int limit = buffer.limit(); final int position = buffer.position();