RFR: 8174840: Elements.overrides does not check the return type of the methods

Joe Darcy darcy at openjdk.org
Wed Nov 20 05:43:16 UTC 2024


On Tue, 19 Nov 2024 16:08:18 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

> Please review this essentially doc only change.

src/java.compiler/share/classes/javax/lang/model/util/Elements.java line 784:

> 782:      * method's return type, listed exceptions, or, to some extent, access
> 783:      * modifiers. These are additional requirements checked by the compiler
> 784:      * (see {@jls 8.4.8.3}).

Nit: use something like

`(see JLS {@jls 8.4.8.3}).`

as currently written, this would just render a section number pointing to a page.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22244#discussion_r1849563865


More information about the compiler-dev mailing list