flycrane / jchord

Automatically exported from code.google.com/p/jchord
0 stars 0 forks source link

ClassHierarchy doesn't handle indirectly referenced interfaces #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Consider the attached code.  LeafClass implements interface Root and ought to 
be in scope. But it never gets picked up, because it implements the interface 
indirectly, via a superclass.

Original issue reported on code.google.com by asrabkin@gmail.com on 27 Jul 2010 at 6:35

Attachments:

GoogleCodeExporter commented 9 years ago
Following patch worked for me.
I also added a relation to keep track of everything that got scope excluded.

Original comment by asrabkin@gmail.com on 27 Jul 2010 at 6:51

Attachments:

GoogleCodeExporter commented 9 years ago
This relation might be more widely applicable.  I often want to analyze 
excluded methods in some specific way.  Feel free to give it a sensible name 
and commit it.

Original comment by asrabkin@gmail.com on 27 Jul 2010 at 6:52

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mayur.naik on 6 Aug 2010 at 3:15

GoogleCodeExporter commented 9 years ago
Fixed in revision r994 but did not include your check 
"if(!RelScopeExcludedM.isOutOfScope(d))".  I think it shouldn't make a 
difference.  Also added relation RelScopeExcludedM to package chord.rels in 
revision r1002.  Thanks for the bug fix! 

Original comment by mayur.naik on 6 Aug 2010 at 3:58