[jdk17u-dev] RFR: 8268582: javadoc throws NPE with --ignore-source-errors option

mollyibot duke at openjdk.org
Sun Jan 8 07:48:18 UTC 2023


On Wed, 9 Feb 2022 13:37:14 GMT, Alexey Pavlyutkin <duke at openjdk.org> wrote:

> I'd like to backport JDK-8268582 to jdk17u-dev
> 
> The patch fixes javadoc NPE when using the --ignore-source-errors option with an non-existing type.
> 
> Original patch applied cleanly
> 
> Verification: `javadoc --ignore-source-errors ./Test.java` where Test.java has the following content
> 
> 
> import invalid.example.OtherClass;
> 
> public class Test<T> extends OtherClass<T> {
> 
> }
> 
> 
> Regression: langtools_javadoc (20.04/amd64)

I have encountered the same issue, is there any solution to avoid this NPE? for example by passing some extra flags?

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

PR: https://git.openjdk.org/jdk17u-dev/pull/152


More information about the jdk-updates-dev mailing list