Community
Participate
Working Groups
This is a consequence of AspectJ bug 77269. Given the following program in Test.java: class Test { public void testMethod() { new Runnable() { public void run() { } }; class C { public void m(){ } } } } aspect A { declare warning : execution(* m(..)) : "blah"; declare warning : execution(* run(..)) : "blah blah"; } The declare warning matches appear in the gutter markers and in the ajde structure model. In the xref view, however, they only appear as nodes under the aspect and not under the class.
Created attachment 27718 [details] eclipse workspace Picture of the xref view, gutter markers and structure model view showing the problem reported in this bug.
The problem only occurs if you have "show xrefs for entire file" selected. Otherwise it works as expected i.e. the xrefs for the inner classes are shown.
The problem was in the recursion algorithm in XReferenceContentProvider.addChildren(..) which was preventing the lower levels of the tree being displayed. The fix and tests have been integrated into both the AJDT 1.2 and 1.3 streams (tests are in org.ajdt.ui.tests, XReferenceViewContentsTest.java). Waiting on clean builds.
The builds which contain this fix are: AJDT 1.3: 20051011134207 AJDT 1.2: 20051007170626 Therefore, closing this bug as fixed.