On Mon, 17 May 2021 17:12:50 GMT, Hannes Wallnöfer <hann...@openjdk.org> wrote:

>> liach has refreshed the contents of this pull request, and previous commits 
>> have been removed. The incremental views will show differences compared to 
>> the previous content of the PR. The pull request contains one new commit 
>> since the last revision:
>> 
>>   JDK-8267219: Javadoc method summary breaks when {@inheritDoc} from an 
>> empty parent
>
> test/langtools/jdk/javadoc/doclet/testEmptyInheritDoc/Second.java line 24:
> 
>> 22:  */
>> 23: 
>> 24: public class Second {
> 
> Shouldn't this class extend `First`?

Right. Turns out this bug can be replicated with just one file as well:

public class Second {
  /**
   * {@inheritDoc}
   */
  public void act() {}
  
  public void bite() {}
}

Somehow javadoc still replaces `{@inheritDoc}` tag with empty output (tested 
with 16), and this serious bug doesn't affect the validity of the test 😅 in an 
unexpected way. Pushing the fixed version of test classes.

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

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

Reply via email to