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

Tool creates broken links to JDK Javadoc

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows [Version 10.0.17763.195]

      openjdk version "11.0.1" 2018-10-16
      OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
      OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      The Javadoc tool creates broken link to the Java 11 Javadoc hosted on the Oracle website.

      This bug is present in version 11.0.1 but not version 12-ea+19. Please backport the fix to Java 11.

      REGRESSION : Last worked in version 10.0.2

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run "javadoc @options @packages" where:

      options contains:
      "-encoding
      'UTF-8'
      -public
      -sourcepath
      'src/main/java'
      -author
      -bottom
      'Copyright © 2019. All rights reserved.'
      -charset
      'UTF-8'
      -d
      'target/site/apidocs'
      -docencoding
      'UTF-8'
      -doctitle
      'javadoc-link-to-jdk 1.0-SNAPSHOT API'
      -link
      'https://docs.oracle.com/en/java/javase/11/docs/api/'
      -use
      -version
      "

      packages contains:
      "testcase"

      src/main/java/test/Main.java contains:

      package testcase;

      public class Main
      {
              public Number createNumber()
              {
                      return 0;
              }
      }

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Hyperlink to java.lang.Number should point to https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Number.html?is-external=true
      ACTUAL -
      Hyperlink to java.lang.Number points to https://docs.oracle.com/en/java/javase/11/docs/api/java/lang/Number.html?is-external=true

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                akolarkunnu Abdul Kolarkunnu
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: