Bug 178847 - [search] Potential matches found when searching references to IJavaElement#getResource()
Summary: [search] Potential matches found when searching references to IJavaElement#ge...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M7   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-22 13:44 EDT by Jerome Lanneluc CLA
Modified: 2007-04-27 10:27 EDT (History)
0 users

See Also:


Attachments
Proposed fix (1.04 KB, patch)
2007-03-22 13:46 EDT, Jerome Lanneluc CLA
no flags Details | Diff
Regression test (4.45 KB, patch)
2007-03-23 11:40 EDT, Jerome Lanneluc CLA
no flags Details | Diff

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