Summary: | incorrect shadowing reported by rename [refactoring] | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert, dirk_baeumer |
Version: | 3.0 | ||
Target Milestone: | 3.0 M4 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Adam Kiezun
2003-08-14 07:14:56 EDT
it looks like SearchEngine is not reporting 1 match in a working copy. i create working copies for SimpleInterface.java and ClientClass.java, i modify them in memory by renaming CONSTANT to C and reconciling. i then call SearchEngine.search to find ALL_OCCURENCES and give it the 2 working copies. only the declaration is found, the reference is not. this only happens if SimpleInterface and ClientClass are in different projects (both projects are in the search scope) asking jcore for comment *** Bug 41533 has been marked as a duplicate of this bug. *** *** Bug 30267 has been marked as a duplicate of this bug. *** Fixed MatchLocator.locateMatches(JavaProject,PotentialMatch[],int,int) to take working copies in other projects into account as well. Added regression test JavaSearchMultipleProjectsTests.testFieldOccurencesInWorkingCopies() Verified. |