Bug 80223 - [search] Declaration search doesn't consider visibility to determine overriding methods
Summary: [search] Declaration search doesn't consider visibility to determine overridi...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-05 15:13 EST by Markus Keller CLA
Modified: 2005-02-14 11:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2004-12-05 15:13:46 EST
I20041130-0800

a/A.java:
package a;
public class A {
    void m() {}
}

b/B.java:
package b;
public class B extends a.A {
    void m() {}
}

The compiler emits a warning that method b.B#m() does *not* override a.A#m().
However, a search for declarations (and occurrences) of method a.A#m() also
reports b.B#m(), which is wrong.
Comment 1 Frederic Fusier CLA 2004-12-30 12:48:00 EST
Fixed.

Now only A.m() method declaration is found.

[jdt-core-internal]
Change done in MethodLocator.resolveLevel(Binding).
Test case added in JavaSearchBugsTests.
Comment 2 David Audel CLA 2005-02-14 11:33:02 EST
Verified for 3.1M5