Summary: | Refactoring d.n. work for projects with brackets in name. | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Alexander Shatalin <vano> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | akiezun, Eric.Vlemmix, nick.entin, shatalin |
Version: | 2.0.2 | ||
Target Milestone: | 2.1 RC1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Alexander Shatalin
2003-02-17 07:51:10 EST
will have a look looks like a SearchEngine problem we correctly call SearchEngine with searchPattern: TypeReferencePattern: pkg<p1>, type<C2>, exact match, case sensitive scope: JavaSearchScope on [ /A( ] (no working copies) and get no hits search view must be doing something diffent, because it does get hits Was able to reproduce using the Search UI: the problem happens if there is no editor open (i.e. no working copy passed to the SearchEngine). It looks like the index for the project with bracket is not found. Actually the index is found. Querying this index fails to find the references. Problem is with IndexedFile.INFO_BEGIN constant whose value is "(". Thus IndexedFile.getPath() will always return the project name (up until the bracket) instead of the cu path. Property support in IndexedFile is never used, got rid of it since we don't need it anyway. Added regression test JavaSearchTests.testTypeReference4() *** Bug 34059 has been marked as a duplicate of this bug. *** Verified. |