RFR: 8177100: APIs duplicated in JavaDoc [v6]
Nizar Benalla
nbenalla at openjdk.org
Mon Jun 2 14:31:17 UTC 2025
> Please review this patch to fix a bug where a method can be documented multiple times
> Consider these 4 classes
>
> A (interface)
> / \
> / \
> (abstract class) C B ( interface)
> \ /
> \ /
> D (class)
>
>
> Where `A` declares `testA()`, `C` implements it `public final void testA()`, `B` extends `A` but does *not* override it, `D` extends `C` and implements `B`
>
> In the generated javadoc, `testA()` is documented twice.
>
> 
>
> After the patch, `testA()` is only documented once:
>
> 
Nizar Benalla has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 12 additional commits since the last revision:
- revert back to simple earlier fix
- revert back to master
- Merge branch 'master' into duplicate-APIs
- Merge branch 'master' into duplicate-APIs
- rename test to be more accurate and simplify code
- update javadoc
- Merge branch 'master' into duplicate-APIs
- new approach - make sure there is no negative effect on JDK doc output
- revert VisibleMemberTable back to master
- fix comment
- ... and 2 more: https://git.openjdk.org/jdk/compare/e6258c6a...b53817df
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25123/files
- new: https://git.openjdk.org/jdk/pull/25123/files/4c645c7b..b53817df
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25123&range=05
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25123&range=04-05
Stats: 135722 lines in 2162 files changed: 74850 ins; 42446 del; 18426 mod
Patch: https://git.openjdk.org/jdk/pull/25123.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25123/head:pull/25123
PR: https://git.openjdk.org/jdk/pull/25123
More information about the javadoc-dev
mailing list