Bug 181987 - [search] Call Hierarchy includes incorrect call sites
Summary: [search] Call Hierarchy includes incorrect call sites
Status: VERIFIED DUPLICATE of bug 156491
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.3 M2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-11 13:52 EDT by Igor Lubashev CLA
Modified: 2007-04-12 03:41 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Lubashev CLA 2007-04-11 13:52:20 EDT
Build ID: M20070212-1330

Steps To Reproduce:
Here is a class structure:

class A {
  void foo(){}
}

class B extends A {
  void foo(){ super.foo(); }
}

class C extends A {
  void bar(){ foo(); }
}


Now, if you select method "foo" from class B, the Call Hierarchy will claim that it can be called from C.bar().  But that is impossible!

Basically, a method that overrides its superclass's method should never be considered called, when a different subclass of the superclass is calling it's superclass's method.

More information:
Comment 1 Frederic Fusier CLA 2007-04-12 03:38:06 EDT

*** This bug has been marked as a duplicate of bug 156491 ***
Comment 2 Frederic Fusier CLA 2007-04-12 03:41:20 EDT
Verified for 3.3 M6 using build I20070323-1616