Skip to content

[MCOMPILER-603] NullPointerException when using --patch-module compiler argument in tests #887

@jira-importer

Description

@jira-importer

Artem K. opened MCOMPILER-603 and commented

Summary

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

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.

Proof-of-concept

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


Affects: 3.13.0

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions