Bug 920042

Summary: maven-plugin-tools: NullPointerException in MojoClassVisitor.visit()
Product: [Fedora] Fedora Reporter: Mikolaj Izdebski <mizdebsk>
Component: maven-plugin-toolsAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: rawhideCC: java-sig-commits, jcapik, mizdebsk, tradej, yyang
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.1-10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-11 14:26:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 914173, 927780    

Description Mikolaj Izdebski 2013-03-11 09:03:07 UTC
Description of problem:
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().

Version-Release number of selected component (if applicable):
3.1-9

Additional info:
Reported upstream: http://jira.codehaus.org/browse/MPLUGIN-242

Comment 1 Mikolaj Izdebski 2013-03-11 11:45:31 UTC
Fixed in maven-plugin-tools-3.1-10

Comment 2 Mikolaj Izdebski 2013-03-11 14:26:59 UTC
I believe that this bug is fixed in maven-plugin-tools-3.1-10,
which is available in Fedora Rawhide, so I am closing this bug now.

The build containing the fix can be found at Koji:
http://koji.fedoraproject.org/koji/buildinfo?buildID=401563