# HG changeset patch # User prappo # Date 1519749879 0 # Node ID a0cf7477d1392e6a08bf9088493f2de97ff9e057 # Parent f4c9c5920141606b9486b7cde4d0fd6d366c1dfd http-client-branch: (HttpClient) added a comment to the BadHeadersTest as suggested by dfuchs diff -r f4c9c5920141 -r a0cf7477d139 test/jdk/java/net/httpclient/http2/BadHeadersTest.java --- a/test/jdk/java/net/httpclient/http2/BadHeadersTest.java Tue Feb 27 16:08:08 2018 +0000 +++ b/test/jdk/java/net/httpclient/http2/BadHeadersTest.java Tue Feb 27 16:44:39 2018 +0000 @@ -292,6 +292,13 @@ } } + /* + * Use carefully. This class might not be suitable outside this test's + * context. Pay attention working with multi Map view returned from map(). + * The reason is that header names must be lower-cased prior to any + * operation that depends on whether or not the map contains a specific + * element. + */ private static class OrderedHttpHeaders extends HttpHeadersImpl { private final Map> map = new LinkedHashMap<>();