[ 
https://issues.apache.org/jira/browse/MJAVADOC-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17763582#comment-17763582
 ] 

Konrad Windszus edited comment on MJAVADOC-742 at 9/11/23 7:44 AM:
-------------------------------------------------------------------

The NPE observed with JDK < 17 happens here: 
https://github.com/openjdk/jdk11u-dev/blob/bcce7afba4503e3bc9f1d7dc2aa7de7eca86c764/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/Start.java#L634C34-L634C47.
 So {{doclet.getSupportedOptions()}} obviously returns {{null}}. According to 
https://github.com/openjdk/jdk11u-dev/blob/bcce7afba4503e3bc9f1d7dc2aa7de7eca86c764/src/jdk.javadoc/share/classes/jdk/javadoc/doclet/Doclet.java#L86C27-L86C46
 null must never be returned there.


was (Author: kwin):
The NPE observed with JDK < 17 happens here: 
https://github.com/openjdk/jdk11u-dev/blob/bcce7afba4503e3bc9f1d7dc2aa7de7eca86c764/src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/Start.java#L634C34-L634C47.
 So {{doclet.getSupportedOptions()}} obviously returns {{null}}.

> [REGRESSION] Transitive dependencies of docletArtifact missing
> --------------------------------------------------------------
>
>                 Key: MJAVADOC-742
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-742
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>          Components: javadoc
>    Affects Versions: 3.5.0
>            Reporter: Patrick Ruckstuhl
>            Priority: Blocker
>
> It looks like with 3.5.0 transitive dependencies of the docletArtifact are no 
> longer added to the classpath and generation fails with class not found. 
> Reverting back to 3.4.1 everything works fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to