Community
Participate
Working Groups
This is essentially bug 10057 ("References To Hierarchy") but occurs in the Method Call Hierarchy. Just to be clear: Say class B extends A and B.fooBar() overrides A.fooBar(). When i bring up the Method Call Hierarchy on (or search for references to) B.fooBar() the results do not include references that are determined to be directly to A.fooBar(), such as if B.fooBar() calls super.fooBar(), the reference to super.fooBar is not listed. The results can be misleading if the user is not really paying attention to which specific type they are in.
Asking JDT/Core for comments.
Jerome - Is this us or UI ?
Looks like a bug on our side. To reproduce: 1. Create the 2 following cus: X.java public class X { protected void foobar() { } } Y.java public class Y extends X { protected void foobar() { super.foobar(); } void bar() { new X().foobar(); } } 2. Select Y.foobar() and search for references in the hierarchy Observe: Only the reference in Y.bar() is found. The reference in Y.foobar() is not found
Searching in the workspace doesn't find the super.foobar() reference either
I take back what I said in comment #3. super.foobar() cannot be a reference to Y.foobar() as it is called within Y. Works as expected.