You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/07/07 18:54:00 UTC

[jira] [Commented] (MCOMPILER-311) NPE when --patch-module is used

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

Hudson commented on MCOMPILER-311:
----------------------------------

Build failed in Jenkins: Maven TLP » maven-compiler-plugin » MCOMPILER-323 #8

See https://builds.apache.org/job/maven-box/job/maven-compiler-plugin/job/MCOMPILER-323/8/

> NPE when --patch-module is used
> -------------------------------
>
>                 Key: MCOMPILER-311
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-311
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.7.0
>         Environment: Java 10 in Windows 10
>            Reporter: Zhihong Zhang
>            Assignee: Robert Scholte
>            Priority: Major
>             Fix For: 3.7.1
>
>
> When "--patch-module" argument is added to the compiler, the plugin always throws NullPointerException. For example,
> {code:xml}          
>           <compilerArgs>
>               <arg>--patch-module</arg>
>               <arg>java.xml.ws.annotation=jsr305-3.0.1.jar</arg>
>           </compilerArgs>
> {code}
> {code}
> Caused by: java.lang.NullPointerException
>         at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1004)
>         at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:168)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> {code}
> The bug is caused by an unimplemented method in CompilerMOJO.java,
> {code:title=CompilerMOJO.java|borderStyle=solid}
>     @Override
>     protected Map<String, JavaModuleDescriptor> getPathElements()
>     {
>         // TODO Auto-generated method stub
>         return null;
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)