Bug 208756

Summary: [search] Call Hierarchy does not find calls on Interface with inheritance
Product: [Eclipse Project] JDT Reporter: Daniel Schneller <daniel.schneller>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: eric_jodet, Olivier_Thomann
Version: 3.3   
Target Milestone: 3.3.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Daniel Schneller CLA 2007-11-05 08:15:46 EST
Build ID: M20070921-1145

Steps To Reproduce:
Setup:

public interface InterfaceA {
    public void setValue(int aValue);
}
public class ClassA implements InterfaceA {
    public void setValue(int aValue) {
    }
}

public interface InterfaceB extends InterfaceA {
}
public class ClassB extends ClassA implements InterfaceB {
}

public class Main {
    public static void main(String[] args) {
        new Main().run();
    }
    private void run() {
        InterfaceB anB = new ClassB();
        anB.setValue(123);
    }
}


Go to ClassA and hit Ctrl-Alt-H on setValue. In Eclipse 3.2.2 you will get Main.run() as a caller match.

In Eclipse 3.3.1 the result is empty!

Searching on InterfaceA shows the expected result in 3.3.

This is very dangerous when you have to e. g. check all callers for some bug pattern etc. People here rely heavily on the call hierarchy.

Using "Find References in Workspace" will NOT yield the match either in 3.3.1 but in 3.2 it will.

There are not filters applied to any views.

More information:
Comment 1 Frederic Fusier CLA 2007-11-05 11:16:52 EST
Searching from InterfaceA in 3.3.1 also works => this is not a regression bewteen 3.3 and 3.3.1...


*** This bug has been marked as a duplicate of bug 178596 ***
Comment 2 Eric Jodet CLA 2007-12-12 03:23:16 EST
Verified for 3.4 M4 using build I20071211-0010