RFR: JDK-8164094: javadoc allows to create a @link to a non-existent method

Hannes Wallnöfer hannesw at openjdk.org
Tue Dec 12 09:24:35 UTC 2023

On Mon, 11 Dec 2023 21:18:57 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

> Please review a simple fix in `JavacTrees` to only look up member references in the enclosing type if the reference does not contain an explicit type name. For example, `@see #method()` in a a doc comment of class `Outer.Inner` should find method `Outer.method()`, but `@see Inner#method()` should not (regardless of comment location).

There are a few cases of this linking pattern in OpenJDK that need to be fixed before this can be integrated. I filed [JDK-8321889](https://bugs.openjdk.org/browse/JDK-8321889).


PR Comment: https://git.openjdk.org/jdk/pull/17069#issuecomment-1851612460

More information about the compiler-dev mailing list