Bug 208756 - [search] Call Hierarchy does not find calls on Interface with inheritance
Summary: [search] Call Hierarchy does not find calls on Interface with inheritance
Status: VERIFIED DUPLICATE of bug 178596
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.3.2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 08:15 EST by Daniel Schneller CLA
Modified: 2007-12-12 03:23 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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