[ 
https://issues.apache.org/jira/browse/XBEAN-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet closed XBEAN-263.
---------------------------------


> 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
>              Labels: patch, test
>             Fix For: 3.18
>
>
> 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)

Reply via email to