On Wed, 30 Jul 2025 15:35:29 GMT, Hannes Wallnöfer <hann...@openjdk.org> wrote:
> Please review a simple fix for a javadoc failure when `{@inheritDoc}` is > placed in the `@throws` tag of a constructor. > > `{@inheritDoc}` tags in invalid locations are treated as warnings, so we add > a check for the warning and ignore the `{@inheritDoc}` when rendering the > `@throws` tag. > > The test also checks `{@inheritDoc}` tags in a few other locations, such as > field descriptions, constructor descriptions, and `@param` tags of > constructors. The patch also includes some whitespace cleanup in the warning > message and the existing tests. This pull request has now been integrated. Changeset: d80b5c87 Author: Hannes Wallnöfer <hann...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/d80b5c8728a18c74cf427817b4b84052a5404870 Stats: 93 lines in 3 files changed: 71 ins; 1 del; 21 mod 8361316: javadoc tool fails with an exception for an inheritdoc on throws clause of a constructor Reviewed-by: nbenalla, liach ------------- PR: https://git.openjdk.org/jdk/pull/26557