Bug 56732 Call Hierarchy doesn't show callees of method from anonymous type
3.0M8: Call Hierarchy doesn't show callees of method from anonymous type. Callees of m() are correctly shown: println(String) and Runnable. However, callees of run() are empty, although run() calls println(String). class A { void m() { System.out.println("before"); Runnable runnable= new Runnable() { public void run() { System.out.println("run"); } }; runnable.run(); } }
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CallHierarchyTest.java
}
    public void testImplicitConstructorCallers() throws Exception {
        helper.createSimpleClasses();
        
        IMethod constructorA= helper.getType1().getMethod("A", EMPTY);
        Collection expectedCallers= new ArrayList();
        expectedCallers.add(helper.getType2());
        MethodWrapper wrapper= CallHierarchy.getDefault().getCallerRoot(constructorA);
        MethodWrapper[] callers= wrapper.getCalls(new NullProgressMonitor());
        assertRecursive(callers, false);
        helper.assertCalls(expectedCallers, callers);
    }
    
    public void testImplicitConstructorCallees() throws Exception {
        helper.createImplicitConstructorClasses();
        
        IMethod constructorB= helper.getType2().getMethods()[0];
        Collection expectedCallers= new ArrayList();
        expectedCallers.add(helper.getType1());
        MethodWrapper wrapper= CallHierarchy.getDefault().getCalleeRoot(constructorB);
        MethodWrapper[] callers= wrapper.getCalls(new NullProgressMonitor());
        assertRecursive(callers, false);
        helper.assertCalls(expectedCallers, callers);
    }
    public void testLineNumberCallers() throws Exception {
        helper.createSimpleClasses();
        
        MethodWrapper wrapper= CallHierarchy.getDefault().getCallerRoot(helper.getMethod1());
        MethodWrapper[] calls= wrapper.getCalls(new NullProgressMonitor());
        MethodWrapper method2Wrapper= helper.findMethodWrapper(helper.getMethod2(), calls);