[jdk19] RFR: 8287379: Using @inheritDoc in an inapplicable context shouldn't crash javadoc

Pavel Rappo prappo at openjdk.org
Mon Jun 27 19:22:47 UTC 2022


On Mon, 27 Jun 2022 17:48:13 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> This rights the wrongs of JDK-8008768. For more information, see the respective CSR.
>
> test/langtools/jdk/javadoc/doclet/testRelativeLinks/TestRelativeLinks.java line 67:
> 
>> 65:                 <a href="#class-fragment">fragment class link</a>""",
>> 66:             """
>> 67:                 <a id="class-fragment">Class fragment</a>""",
> 
> Why are these lines (and similar, below) being deleted?

Because they come from `{@inheritDoc}` on a class' main description. Such a use case is undocumented, unsupported, and is now being prohibited by this PR.

> test/langtools/jdk/javadoc/doclet/testRelativeLinks/pkg/C.java line 32:
> 
>> 30:  *
>> 31:  * <a id="class-fragment">Class fragment</a>.
>> 32:  */
> 
> Why are these being deleted?

ditto

-------------

PR: https://git.openjdk.org/jdk19/pull/54


More information about the javadoc-dev mailing list