Bug 178847

Summary: [search] Potential matches found when searching references to IJavaElement#getResource()
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix
none
Regression test none

Description Jerome Lanneluc CLA 2007-03-22 13:44:12 EDT
I20070321-1800

I have JDT core plugins as source in my workspace, and JDT UI tests projects as source. Note that JDT UI plugins are not loaded.

If I search for references to IJavaElement#getResources() in the workspace, I get a lot of potential match in the jdt.ui jar file (referenced by the JDT UI tests).
Comment 1 Jerome Lanneluc CLA 2007-03-22 13:44:58 EDT
Need to find out if we have this problem in 3.2
Comment 2 Jerome Lanneluc CLA 2007-03-22 13:46:02 EDT
Created attachment 61714 [details]
Proposed fix
Comment 3 Jerome Lanneluc CLA 2007-03-23 02:58:58 EDT
To reproduce:
1. Import org.eclipse.jdt.core as a binary plug-in
2. Check out org.eclipse.test.performance
3. Check out org.eclipse.jdt.ui.tests
4. Open IJavaElement
5. Select getResource() in Outline
6. Search > References > Workspace
Observe: You get many potential matches
Comment 4 Jerome Lanneluc CLA 2007-03-23 03:27:13 EDT
Problem existed in 3.2
Comment 5 Jerome Lanneluc CLA 2007-03-23 11:40:00 EDT
Created attachment 61839 [details]
Regression test
Comment 6 Jerome Lanneluc CLA 2007-03-26 07:36:44 EDT
Fix and test released for 3.3M7 in HEAD.
Comment 7 Eric Jodet CLA 2007-04-27 10:27:17 EDT
Verified for 3.3 M7 using build I20070427-0010