Summary: | [search] Refactor->Rename on local class also renames references to different local classes with same name | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Ingo Maier <i.maier> |
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | PC | ||
OS: | All | ||
Whiteboard: |
Description
Ingo Maier
2005-01-12 10:31:00 EST
Move to JDT/UI This is a JDT/Core search issue. Search for references to test1.Dummy class returns 4 matches instead of 2 expected ones... If time permit Fixed and released in HEAD. Search engine now verifies when focus is not null that its parent matches enclosingMethod of method binding match (if exist). [jdt-core-internal] Changes done in TypeReferenceLocator.matchReportReference(Expression, int, TypeBinding, MatchLocator). Test case added in JavaSearchBugsTests. Note that JavaSearchTests.testTypeReference37 has been also modified has this fix detected that it was invalid (searched method didn't exist...) Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD. |