[ 
https://issues.apache.org/jira/browse/XBEAN-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14002581#comment-14002581
 ] 

Matt Benson commented on XBEAN-265:
-----------------------------------

Additionally, these tests all work fine if {{ClassInfo#get()}} isn't forced 
before calling {{#link()}}, which simply shows that despite the fact that, at 
runtime, it is _preferred_ to the name/signature-based functionality, the 
class-based functionality isn't usually tested. You can see this for yourself 
by placing breakpoints on {{AnnotationFinder#readClassDef(Class)}} and running 
all tests in debug mode. Other than mine, no tests will cause this method to 
get called.

> Regression: cannot find subclasses/implementations of "external" classes 
> after forcing ClassInfo.get()
> ------------------------------------------------------------------------------------------------------
>
>                 Key: XBEAN-265
>                 URL: https://issues.apache.org/jira/browse/XBEAN-265
>             Project: XBean
>          Issue Type: Bug
>          Components: finder
>    Affects Versions: 3.15, 3.16, 3.17
>            Reporter: Matt Benson
>              Labels: patch, test
>
> By "external" I mean available in the archive's classloader but not its 
> iterated entries. In general it is rather difficult to test the class-based 
> portion of {{AnnotationFinder}}'s implementation, but it can be done by 
> calling {{#findAnnotatedClasses()}} before {{#link()}}. Then it is possible 
> to demonstrate the problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to