inheritDoc with covariant methods

Pavel Rappo pavel.rappo at oracle.com
Wed Nov 30 16:56:13 UTC 2022


Hi Scott,

Please provide warning output you see and describe the behavior a bit better; it's not obvious what the issue is.

-Pavel

> On 30 Nov 2022, at 16:08, Scott Mitchell <scottmitch.openjdk at gmail.com> wrote:
> 
> JDK19 recently started throwing warnings for {@inheritDoc} usage on covarient methods (potentially related commit [1]). IIUC the previous behavior was the docs weren't actually inherited but in a silent fashion. Is the preferred approach to duplicate javadocs in this case (as done in [2]) and is this a suitable enhancement request to avoid duplication?
> 
> [1] https://github.com/openjdk/jdk19u/commit/59e9700c4e0ae892f15607bcaa267e5868eb0512
> [2] https://github.com/apple/servicetalk/pull/2433/commits/f97175625840228f351e8938a8f4d2f96f3f5ab0



More information about the javadoc-dev mailing list