Bug 29524 - Search for declaration via patterns adds '"*"
Summary: Search for declaration via patterns adds '"*"
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 29540 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-15 06:15 EST by Dani Megert CLA
Modified: 2003-02-06 12:12 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 2003-01-15 06:15:53 EST
Build 20030107

Test Case:
1. Open Search Dialog - Java page
2. Enter "A", ignore case
3. Search for Declarartions of Type
==> all types starting with A are returned

I verified that JDT Search UI does not append a '*' behind the scenes.
Comment 1 Jerome Lanneluc CLA 2003-01-16 04:13:14 EST
*** Bug 29540 has been marked as a duplicate of this bug. ***
Comment 2 Jerome Lanneluc CLA 2003-01-18 12:14:11 EST
Changed SearchEngine.createSearchPattern(String, ...) to check if the pattern 
contains a wild card. If it does, use PATTERN_MATCH, if not use EXACT_MATCH.
Comment 3 Jerome Lanneluc CLA 2003-01-20 04:59:05 EST
Added regression test JavaSearchTests.testTypeDeclaration()
Comment 4 David Audel CLA 2003-02-06 12:12:13 EST
Verified.