http-client-branch: (HttpClient) added a comment to the BadHeadersTest as suggested by dfuchs
--- 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<String, List<String>> map = new LinkedHashMap<>();