Bug 86596 - [search] Search for type finds segments in import
Summary: [search] Search for type finds segments in import
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 86817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-25 03:25 EST by Dani Megert CLA
Modified: 2005-03-31 04:30 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.