Bug 3336

Summary: SearchEngine doesn't support CLASS and INTERFACE (1GIEPRK)
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, markus.kell.r, richkulp
Version: 2.0   
Target Milestone: 3.1 M7   
Hardware: All   
OS: Windows NT   
Whiteboard:

Description Jerome Lanneluc CLA 2001-10-10 22:53:26 EDT
SearchEngine.createPattern() does not support the IJavaSearchConstants constants
	CLASS and INTERFACE. Providing them for the searchFor argument yields a null
	pattern and the search returns no results.
	It should be possible to create a type pattern using either the IIndexConstants
	CLASS_SUFFIX or INTERFACE_SUFFIX rather than always assuming TYPE_SUFFIX.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 17:10:34 EST
PRODUCT VERSION:
	R0.9

Comment 2 Philipe Mulet CLA 2002-03-14 05:05:37 EST
We have no request for this currently. Will consider post 2.0
Comment 3 Jerome Lanneluc CLA 2002-04-09 05:49:30 EDT
*** Bug 5279 has been marked as a duplicate of this bug. ***
Comment 4 Jerome Lanneluc CLA 2002-06-19 11:51:15 EDT
*** Bug 20653 has been marked as a duplicate of this bug. ***
Comment 5 Markus Keller CLA 2004-11-25 06:24:34 EST
This should either be implemented, or CLASS and INTERFACE should not be
mentioned in the Javadocs of SearchPattern#createPattern(String, int, int, int).
Comment 6 Frederic Fusier CLA 2005-04-26 08:54:33 EDT
Reopen to assign to me...
Comment 7 Frederic Fusier CLA 2005-04-26 14:56:10 EDT
Fixed and released in HEAD.

See bug 82208 for details
Comment 8 Maxime Daniel CLA 2005-05-11 08:52:40 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.