RFR: JDK-8268582: javadoc throws NPE with --ignore-source-errors option

Jonathan Gibbons jjg at openjdk.java.net
Wed Dec 1 18:13:21 UTC 2021


On Mon, 22 Nov 2021 17:15:50 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

> Please review a simple fix for a javadoc NPE when using the undocumented `--ignore-source-errors` option with an non-existing type.
> 
> Note that this just fixes the particular error that occurs when looking for preview API use in invalid types. It is possible that other source errors trigger other errors in javadoc, but I don't think it is worth the time to go and actively look for them.
> 
> In particular, the NPE that is documented by the stack trace in the JBS issue was different from the one fixed here and does not occur anymore, and the one fixed here did not yet exist in JDK 11.

Marked as reviewed by jjg (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/6506


More information about the javadoc-dev mailing list