[ https://issues.apache.org/jira/browse/MCOMPILER-311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhihong Zhang updated MCOMPILER-311: ------------------------------------ Description: When "--patch-module" argument is added to the compiler, the plugin always throws NullPointerException. For example, {{ <compilerArgs> <arg>--patch-module</arg> <arg>java.xml.ws.annotation=jsr305-3.0.1.jar</arg> </compilerArgs> }} The bug is caused by an not implemented method in CompilerMOJO.java, @Override protected Map<String, JavaModuleDescriptor> getPathElements() { // TODO Auto-generated method stub return null; } was: When "--patch-module" argument is added to the compiler, the plugin always throws NullPointerException. For example, <compilerArgs> <arg>--patch-module</arg> <arg>java.xml.ws.annotation=jsr305-3.0.1.jar</arg> </compilerArgs> The bug is caused by an not implemented method in CompilerMOJO.java, @Override protected Map<String, JavaModuleDescriptor> getPathElements() { // TODO Auto-generated method stub return null; } > 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 > > When "--patch-module" argument is added to the compiler, the plugin always > throws NullPointerException. For example, > {{ > <compilerArgs> > <arg>--patch-module</arg> > <arg>java.xml.ws.annotation=jsr305-3.0.1.jar</arg> > </compilerArgs> > }} > The bug is caused by an not implemented method in CompilerMOJO.java, > @Override > protected Map<String, JavaModuleDescriptor> getPathElements() > { > // TODO Auto-generated method stub > return null; > } -- This message was sent by Atlassian JIRA (v6.4.14#64029)