[ 
https://jira.codehaus.org/browse/MPLUGIN-242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=345449#comment-345449
 ] 

Mikolaj Izdebski commented on MPLUGIN-242:
------------------------------------------

Yes, this is affecting some real projects.  Fedora and RHEL have to use patched 
version of Maven Plugin Tools:

http://pkgs.fedoraproject.org/cgit/maven-plugin-tools.git/tree/maven-plugin-tools.spec#n12
http://pkgs.fedoraproject.org/cgit/maven-plugin-tools.git/tree/maven-plugin-tools-rhbz-920042.patch

> 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
>         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)

Reply via email to