RFR: JDK-8267219: Javadoc method summary breaks when {@inheritDoc} from an empty parent

Hannes Wallnöfer hannesw at openjdk.java.net
Mon May 17 17:15:49 UTC 2021


On Mon, 17 May 2021 16:51:54 GMT, liach <github.com+7806504+liach at openjdk.org> wrote:

> This change fixes when a method body has only inline tags that produce no output, the method summary will get eaten.
> 
> This change allows `{@inheritDoc}` from empty parents to go through the code path used by `-nocomment` and properly generate tables.
> 
> All `jtreg:test/langtools/jdk/javadoc/doclet` tests pass.

test/langtools/jdk/javadoc/doclet/testEmptyInheritDoc/Second.java line 24:

> 22:  */
> 23: 
> 24: public class Second {

Shouldn't this class extend `First`?

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

PR: https://git.openjdk.java.net/jdk/pull/4066


More information about the javadoc-dev mailing list