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

Stanislav Ochotnicky updated MPLUGIN-242:
-----------------------------------------

    Attachment: mplugin-unit-test.patch
                mplugin-fix.patch

Proposed fix & reproducer unit test
                
> NullPointerException in MojoClassVisitor.visit()
> ------------------------------------------------
>
>                 Key: MPLUGIN-242
>                 URL: https://jira.codehaus.org/browse/MPLUGIN-242
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>            Reporter: Mikolaj Izdebski
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to