Details
-
Bug
-
Resolution: Fixed
-
P4
-
11, 17
-
b08
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8310254 | 17.0.9-oracle | Hannes Wallnoefer | P4 | Resolved | Fixed | b04 |
JDK-8302593 | 17.0.7 | Dukebot | P4 | Resolved | Fixed | b03 |
JDK-8316770 | 11.0.22-oracle | Hannes Wallnoefer | P4 | Resolved | Fixed | b01 |
JDK-8311519 | 11.0.21 | Roman Marchenko | P4 | Resolved | Fixed | b01 |
Description
Let’s say, there is a library is being developed for further use with another Java8 project. The library development is performed using Java17 because of some legacy reasons. And these are the reasons of the developers have no option to choose another version of Java. The library is compiled with ‘-source 8’ or ‘--release 8’ options passed to both javac and javadoc (linking with Oracle’s Java8 docs with ‘-link’ option). As the result, the generated docs are not compatible with Oracle’s Java8 docs because of different forms of anchors and element IDs.
Even if there is a solution to additionally process external links to docs.oracle.com fixing anchors, the generated docs are still not compatible with any other documentation generated with Java8, local or external.
Of course, there are possible workarounds for the scenario above, however this example scenario shows that javac has backward compatibility to lower versions, but javadoc has not.
Attachments
Issue Links
- backported by
-
JDK-8302593 javadoc cannot link to old docs (with old style anchors)
- Resolved
-
JDK-8310254 javadoc cannot link to old docs (with old style anchors)
- Resolved
-
JDK-8311519 javadoc cannot link to old docs (with old style anchors)
- Resolved
-
JDK-8316770 javadoc cannot link to old docs (with old style anchors)
- Resolved
- duplicates
-
JDK-8248010 javadoc generates wrong URL fragments for methods in external older javadoc
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/b9a29eb4
-
Commit openjdk/jdk17u-dev/cf5490b5
-
Commit openjdk/jdk/15a14884
-
Review openjdk/jdk11u-dev/1794
-
Review openjdk/jdk17u-dev/1145
-
Review openjdk/jdk/12066