Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8230694

http.keepAlive system property is inconsistently/incorrectly documented

XMLWordPrintable

    • b14
    • Not verified

      A DESCRIPTION OF THE PROBLEM :
      The documentation at e.g. https://docs.oracle.com/javase/8/docs/technotes/guides/net/http-keepalive.html documents the relevant property as "http.keepAlive"

      The documentation at https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/doc-files/net-properties.html#MiscHTTP documents it as "http.keepalive", i.e. with different case.

      The actual implementation (at e.g. https://hg.openjdk.java.net/jdk/jdk/file/tip/src/java.base/share/classes/sun/net/www/http/HttpClient.java#l166 ) appears to use "http.keepAlive".

      I believe these property names are case-sensitive, in which case the Java 11 documentation is incorrect.
      At best, it is inconsistent and confusing.


      FREQUENCY : always


            dfuchs Daniel Fuchs
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: