Bug 160854

Summary: [search] No type is found using seachAllTypeNames(char[][],char[][],...) methods when no type names is specified
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.3 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2006-10-13 09:10:16 EDT
Using build 3.3 M2 but exist also in 3.2 and 3.1.

Calling SearchEngine method searchAllTypeNames(
	final char[][] qualifications, 
	final char[][] typeNames,
	IJavaSearchScope scope, 
	final TypeNameRequestor nameRequestor,
	int waitingPolicy,
	IProgressMonitor progressMonitor)  throws JavaModelException {

with typeNames = null (whatever qualifications param value is) leads to have no type accepted by given requestor.

I would expect to have all scope types of given package names or all scope types when qualifications is null...
Comment 1 Frederic Fusier CLA 2006-10-16 12:03:54 EDT
Fixed and released for 3.3 M3 in HEAD stream.

Test case added in JavaSearchBugsTests#testBug160854().

Fix for this bug is included in patch attached to bug 161028.
Comment 2 Olivier Thomann CLA 2006-10-30 14:22:05 EST
Verified for 3.3 M3 using warm-up build I20061030-0800 since regression test is ok.