Artem K. created MCOMPILER-603:
----------------------------------

             Summary: NullPointerException when using --patch-module compiler 
argument in tests
                 Key: MCOMPILER-603
                 URL: https://issues.apache.org/jira/browse/MCOMPILER-603
             Project: Maven Compiler Plugin
          Issue Type: Bug
    Affects Versions: 3.13.0
            Reporter: Artem K.
         Attachments: poc.zip

h2. Summary

When using {{--patch-module}} compiler argument, there is a 
{{NullPointerException}} due to field {{pathElements}} not being initialized in 
{{{}TestCompilerMojo{}}}.
h2. Description

This bug is a follow-up to MCOMPILER-510 I reported last year. The problem 
description and the cause is exactly the same. I left the comment in that 
ticket which I think was missed. The fix for MCOMPILER-510 was applied on 
`CompilerMojo` but not on `TestCompilerMojo`. So while the compilation now 
works on main code, the same `NullPointerException` happens when compiling test 
code.
h2. Proof-of-concept

Attached is the an updated POC from my original ticket. When executing `mvn 
verify`, the `NullPointerException` occurs.



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

Reply via email to