Community
Participate
Working Groups
A bug that is slightly different than 73401 (85347, 105768) is the following. In the following code, if you request references for B1.foo(), you'll get both the D reference to B1.foo() (which is correct) and the C reference to A1.foo() (which is not correct). This happens whether you use the Search|Java menu pick or the Search|References|Workspace menu pick. This only occurs if A does not include a definition of foo(). package net.java.refTest; public class SearchForReferences { class TopClass { void foo() { }; } class A extends TopClass { //public void foo() { } // Uncomment to get rid of bug } class B extends TopClass { public void foo() { } } class A1 extends A { } class B1 extends B { public void foo() { } } class C { void bar() { new A1().foo(); } } class D { void bar() { new B1().foo(); } } }
Works as requested in I20070313-1051. *** This bug has been marked as a duplicate of bug 73401 ***
Thanks Markus for the clean-up :-)