| Summary: | [search] Search for declarations of method in anonymous type reports unrelated methods in local classes | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Defer post 3.2 Reopen as LATER is deprecated... *** This bug has been marked as a duplicate of bug 117028 *** |
I20051206-1200 Search for declarations of the first method foo() in the example below reports both other foo() methods too, although they are not related. Search for declarations of Local#foo() correctly reports only that method. public class Foo { public void test() { Foo b= new Foo() { public void foo() { } }; Foo c= new Foo() { public void foo() { } }; { class Local { public void foo() { } }; } } } To reproduce, don't use Search > Declarations > ..., since those actions ignore the declaring type. Use the Search dialog or Refactor > Rename. Low priority for me, since the example is rather contrived.