Bug 21763

Summary: Problem in Java search [search]
Product: [Eclipse Project] JDT Reporter: yann <yann_gensous>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P2    
Version: 1.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.