Bug 160494 - [search] searchAllTypeNames(char[][], char[][],...) fails to find types in default package
Summary: [search] searchAllTypeNames(char[][], char[][],...) fails to find types in de...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M3   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 11:17 EDT by Frederic Fusier CLA
Modified: 2006-10-30 14:19 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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