RFR: 8331579: Reference to primitive type fails without error or warning

Pavel Rappo prappo at openjdk.org
Fri May 31 10:22:05 UTC 2024


On Tue, 28 May 2024 12:28:53 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

> Please review a simple fix to make DocLint report an error when linking to non-declared types in `{@link}` or `@see` tags. This has been implemented when the Standard Doclet is running without DocLint in [JDK-8284030](https://bugs.openjdk.org/browse/JDK-8284030), but needs to be implemented in DocLint as well. It was necessary to limit the behaviour to `{@link}` or `@see`tags since references to non-declared types are allowed within the `@serialField` taglet.

test/langtools/jdk/javadoc/doclet/testLinkTaglet/TestLinkTagletPrimitive.java line 101:

> 99:                  * Double: {@link double}
> 100:                  * Void: {@link void}
> 101:                  * @see int

Consider adding a case of a primitive array, which while relates to primitives is also an object.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19423#discussion_r1622185005


More information about the javadoc-dev mailing list