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

Fix inconsistencies in javadoc/doclet/testLinkOption/TestRedirectLinks.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • tools

      There are a few issues in the test/langtools/jdk/javadoc/doclet/testLinkOption/TestRedirectLinks.java test.

      There are couple of places in the test where the test calls:

      x.sendResponseHeaders(..., 0);

      The test wants to state "no response body". However using the value 0 implies the response body is chunked. The value should instead have been -1.

      Another issue is that, in several places in the test, the test code uses InetAddress.toString() to construct an URL. This should instead have used InetAddress.getHostName() or better still - use the jdk.test.lib.net.URIBuilder test utility.

            jpai Jaikiran Pai
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: