Community
Participate
Working Groups
The searchAllTypeName request for an empty prefix return nothing. It should return all types. new SearchEngine().searchAllTypeNames( null, R_EXACT_MATCH, "".toChararray(), R_PREFIX_MATCH, R_TYPE, scope, nameRequestor, CANCEL_IF_NOT_READY_TO_SEARCH, null); As type match rule is R_PREFIX_MATCH the empty string is a valid prefix for all types. I have a workaround for this problem. I can replace the empty string by 'null'.
Created attachment 49585 [details] Proposed patch Remove optimization at the beginning of searchAllTypeNames which stopped the search when package name was null (or empty) and type name empty. This was obviously wrong for prefix and camel case patterns... I assume there won't be any performance impact as it concerns only a few cases of all type names search.
Released for 3.3 M2 in HEAD stream.
Verified for 3.3 M2 using build I20060918-0010.