You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2014/03/09 10:31:59 UTC

[jira] (MPLUGIN-242) NullPointerException in MojoClassVisitor.visit()

     [ https://jira.codehaus.org/browse/MPLUGIN-242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MPLUGIN-242:
----------------------------------

    Fix Version/s: 3.3

> NullPointerException in MojoClassVisitor.visit()
> ------------------------------------------------
>
>                 Key: MPLUGIN-242
>                 URL: https://jira.codehaus.org/browse/MPLUGIN-242
>             Project: Maven Plugin Tools
>          Issue Type: Bug
>            Reporter: Mikolaj Izdebski
>             Fix For: 3.3
>
>         Attachments: mplugin-fix.patch, mplugin-unit-test.patch
>
>
> Annotation scanner in maven-plugin-tools-annotations assumes that all Java classes have superclass. This is mostly true, but there is one exception - java.lang.Object.
> If annotation scanner encounters a class with no super class (like java.lang.Object) it fails with NullPointerException in MojoClassVisitor.visit().
> Unit test reproducing the bug and proposed fix attached.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)