Bug 110422

Summary: [search] BasicSearchEngine doesn't find all type declarations
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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