Bug 86596

Summary: [search] Search for type finds segments in import
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: markus.kell.r
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dani Megert CLA 2005-02-25 03:25:43 EST
3.1 M5a

1. select org.eclipse.jdt.ui
2. open Java search page
3. enter "Link" (note: uppercase L)
4. ensure case-sensitve box is un-checked
5. select "Type"
6. select "References"
7. click "Search"
(scope must include at least org.eclipse.jdt.ui project)
==> finds references in import declarations
Comment 1 Dani Megert CLA 2005-02-25 03:27:11 EST
I've verified in JDT UI code that we use a TypeReferencePattern.
Comment 2 Frederic Fusier CLA 2005-02-28 06:45:09 EST
*** Bug 86817 has been marked as a duplicate of this bug. ***
Comment 3 Frederic Fusier CLA 2005-02-28 07:47:20 EST
This also happens in 3.0.1
Comment 4 Frederic Fusier CLA 2005-02-28 09:22:48 EST
Fixed.

Now search engine does no longer find any match for this pattern.

[jdt-core-internal]
Change done in TypeReferenceLocator.matchLevel(ImportReference)
Test cases added in JavaSearchBugsTests
Comment 5 Olivier Thomann CLA 2005-03-30 16:25:53 EST
Frederic, could you please verify this one?
I find references in imports, but they look ok to me.
Comment 6 Frederic Fusier CLA 2005-03-31 04:30:57 EST
Verified for 3.1 M6 using build I20050329-2000.
The test was completely wrong and I've released new version which *really*
verify that bug is fixed.