JDK-8216169 : Tool creates broken links to JDK Javadoc
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2019-01-03
  • Updated: 2019-01-05
  • Resolved: 2019-01-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11.0.2Resolved
Related Reports
Duplicate :  
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



Comments
Closing this as duplicate of JDK-8205593.
04-01-2019

Reproducibility with different JDKs: JDK 11.0.1 - Failed JDK 12 build 12 - Failed JDK 12 build 13 - Passed JDK 11.0.2 latest build - Passed So this issue is fixed by by task JDK-8205593 and this task is already back ported to 11.0.2.
04-01-2019