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
MethodWrapper[] cachedCalls= wrapper.getCalls(new NullProgressMonitor());
        helper.assertCalls(expectedMethods, cachedCalls);
        MethodWrapper wrapper2= helper.findMethodWrapper(secondLevelMethod, cachedCalls);
        Collection expectedSecondLevelMethods= new ArrayList();
        expectedSecondLevelMethods.add(helper.getMethod4());
        helper.assertCalls(expectedSecondLevelMethods, wrapper2.getCalls(new NullProgressMonitor()));
    }
    public void testCallersNoResults() throws Exception {
        helper.createSimpleClasses();
        IMethod method= helper.getMethod4();
        Collection expectedMethods= new ArrayList();
        MethodWrapper wrapper= CallHierarchy.getDefault().getCallerRoot(method);
        MethodWrapper[] uncachedCalls= wrapper.getCalls(new NullProgressMonitor());
        helper.assertCalls(expectedMethods, uncachedCalls);
        MethodWrapper[] cachedCalls= wrapper.getCalls(new NullProgressMonitor());
        helper.assertCalls(expectedMethods, cachedCalls);
    }
    public void testCallees() throws Exception {
        helper.createSimpleClasses();
        IMethod method= helper.getMethod4();
        IMethod secondLevelMethod= helper.getMethod3();
        Collection expectedMethods= new ArrayList();
        expectedMethods.add(secondLevelMethod);
        MethodWrapper wrapper= CallHierarchy.getDefault().getCalleeRoot(method);
        MethodWrapper[] uncachedCalls= wrapper.getCalls(new NullProgressMonitor());
        helper.assertCalls(expectedMethods, uncachedCalls);
        MethodWrapper[] cachedCalls= wrapper.getCalls(new NullProgressMonitor());
        helper.assertCalls(expectedMethods, cachedCalls);
        MethodWrapper wrapper2= helper.findMethodWrapper(secondLevelMethod, cachedCalls);
        Collection expectedMethodsTo3= new ArrayList();