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 static Test allTests() {
		return new TestSuite(THIS);
	}
	public static Test suite() {
		if (true) {
			return allTests(); 
        } else {
            TestSuite suite= new TestSuite();
            suite.addTest(new CallHierarchyTest("test1"));
            return suite;
        }
    }
    protected void setUp() throws Exception {
        helper= new CallHierarchyTestHelper();
        helper.setUp();
    }
    protected void tearDown() throws Exception {
        helper.tearDown();
        helper= null;
    }
    public void testCallers() throws Exception {
        helper.createSimpleClasses();
        IMethod method= helper.getMethod1();
        IMethod secondLevelMethod= helper.getMethod3();
        Collection expectedMethods= new ArrayList();
        expectedMethods.add(helper.getMethod2());
        expectedMethods.add(secondLevelMethod);
        MethodWrapper wrapper= CallHierarchy.getDefault().getCallerRoot(method);
        MethodWrapper[] uncachedCalls= wrapper.getCalls(new NullProgressMonitor());
        helper.assertCalls(expectedMethods, uncachedCalls);