Matt Benson created XBEAN-263:
---------------------------------
Summary: creating ClassInfo for an annotated Class object throws
NPE
Key: XBEAN-263
URL: https://issues.apache.org/jira/browse/XBEAN-263
Project: XBean
Issue Type: Bug
Components: finder
Affects Versions: 3.17
Reporter: Matt Benson
The class-based, as opposed to signature-based. portion of {{AnnotationFinder}}
is rather difficult to test, but I have been able to create a failing test
case. The issue is that {{Annotatable(AnnotatedElement)}} calls the
{{AnnotationInfo}} constructor using the classname of the {{annotationType}}
which, in turn, calls ASM's {{Type.getType(String)}}; however, this method
wants a type descriptor (the method's Javadoc actually says "a field or method
type descriptor"). Calling {{AnnotationInfo(Class)}} instead solves the
problem.
--
This message was sent by Atlassian JIRA
(v6.2#6252)