Integrated: 8297437: javadoc cannot link to old docs (with old style anchors)
Roman Marchenko
rmarchenko at openjdk.org
Thu Jan 26 11:14:32 UTC 2023
On Wed, 18 Jan 2023 09:45:44 GMT, Roman Marchenko <rmarchenko at openjdk.org> wrote:
> As it discussed on the mail list, checking presence of "element-list" or "package-list" is good enough approach to determine which type of anchors is used in external docs. The fix is for docs generated by 'supported' platforms only, i.e. 8, 11, ...
>
> This fix extends `Extern.Item` with `useOldFormId` boolean flag to indicate a type of anchor. The boolean flag is set accordingly when reading a list of elements from either "element-list" or "package-list".
>
> Name transformation is performed in `Extern.getExternalLink()` by `getOldFormHtmlName()` call when creating `DocLink` instance.
>
> Type of anchors used by platform docs are hard-coded in `isOldFormPlatformDocs()` (similar to `getPlatformElementList()`), since it's not supposed to rebuild platform docs on docs.oracle.com.
This pull request has now been integrated.
Changeset: 15a14884
Author: Roman Marchenko <rmarchenko at openjdk.org>
Committer: Hannes Wallnöfer <hannesw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/15a14884013a975707008f648b8e4864e16006ed
Stats: 144 lines in 6 files changed: 104 ins; 0 del; 40 mod
8297437: javadoc cannot link to old docs (with old style anchors)
Reviewed-by: hannesw
-------------
PR: https://git.openjdk.org/jdk/pull/12066
More information about the javadoc-dev
mailing list