Bug 160494

Summary: [search] searchAllTypeNames(char[][], char[][],...) fails to find types in default package
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-11 11:17:51 EDT
Build 3.3 M2 but surely happens since it has been implemented in 3.1.

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

method with CharOperation.NO_CHAR_CHAR for qualifications parameter.

I would expect to get all types with specified names in typeNames which are located in default packages of the given scope (for example /P1/Test.java if typeNames was char[][] { "Test".toCharArray() }.

But currently there's no match collected in requestor...

I think this has been never identified has this functionality is only used by Organize Imports which cannot include default packages!
Comment 1 Frederic Fusier CLA 2006-10-11 11:19:17 EDT
This problem was found while testing fix for bug 160324...
Comment 2 Frederic Fusier CLA 2006-10-11 13:08:47 EDT
Fix for this bug is included in patch attached to bug 160323.

Released for 3.3 M3 in HEAD stream.
Comment 3 Olivier Thomann CLA 2006-10-30 14:19:00 EST
Verified for 3.3 M3 using warm-up build I20061030-0800