Community
Participate
Working Groups
- Create new project, which name contains "(" or ")" bracket. - Create two classes (p1.C1, p1.C2) in it. - In class p1.C1 create attribute: "private C2 myC2 = new C2();" - Invoke Refactor/Rename menu item for C2 -> Class would be renamed, but corresponding reference in C1 class would not.
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.