Bug 21763 - Problem in Java search [search]
Summary: Problem in Java search [search]
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-22 11:11 EDT by yann CLA
Modified: 2002-10-17 10:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yann CLA 2002-07-22 11:11:17 EDT
When doing a java search on a field declaration, the character "*" is not 
recognized as a replacement for "_" between two strings in lower case.

1. Create the following class:
public class Test {
	public String class_path;
}

2. Go to Search > Search (Java Search)

3. Select field declarations and search the string "class*path".
The search returns no result.

3. Select field declarations and search the string "CLASS*PATH".
The search returns the expected result.
Comment 1 Dani Megert CLA 2002-09-19 07:54:18 EDT
Is reproducable. Increasing priority and severity

Comment 2 Dani Megert CLA 2002-09-26 08:39:55 EDT
Analyzed the problem
==> bug in SearchEngine.createFieldPattern() [returns null]
Moving to JCore
Comment 3 Jerome Lanneluc CLA 2002-09-30 08:49:03 EDT
When tokenizing the search query string, we used to considered query with 
keywords (like class in this case) a malformed query.
Fixed by considering all tokens as possible identifiers.
Comment 4 David Audel CLA 2002-10-17 10:02:25 EDT
Verified.