Bug 110422 - [search] BasicSearchEngine doesn't find all type declarations
Summary: [search] BasicSearchEngine doesn't find all type declarations
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 08:33 EDT by David Audel CLA
Modified: 2005-12-13 12:20 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 David Audel CLA 2005-09-23 08:33:51 EDT
build I20050921-2000 + jdtcore head

1) perform the following search request.
new BasicSearchEngine(workingCopies).search(
  SearchPattern.createPattern(
    "AESC",
    IJavaSearchConstants.TYPE,
    IJavaSearchConstants.DECLARATIONS,
    SearchPattern.R_PREFIX_MATCH),	
  new SearchParticipant[]{BasicSearchEngine.getDefaultSearchParticipant()},
  searchScope,
  searchRequestor,
  null);

The type 'com.sun.crypto.provider.AESCipher' of the JRE runtime library is not
found by this search request.
Comment 1 Frederic Fusier CLA 2005-12-08 11:30:24 EST
Fixed and released in HEAD.

Changes done in method matchTypeDeclaration(TypeDeclarationPattern,...) of ClassFileMatchLocator. Add '*' at the end of type declaration simple name when pattern mode is R_PREFIX_MATCH...

Test cases added in JavaSearchBugsTests
Comment 2 Jerome Lanneluc CLA 2005-12-13 12:20:29 EST
Verified for 3.2 M4 using build I20051213-0010