Bug 106998 - [search] Impossible potential matches
Summary: [search] Impossible potential matches
Status: RESOLVED DUPLICATE of bug 119203
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   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-08-15 05:22 EDT by Martin Aeschlimann CLA
Modified: 2005-12-05 15:38 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 Martin Aeschlimann CLA 2005-08-15 05:22:03 EDT
3.1

In a workspace that e.g. contains jdt.ui in source (and the rest external,
referenced through the PDE container) open
  org.eclipse.jface.action / Action.class

Select the field 'text' and search for references

Over 170 references are found, most of them impossible: some are parameters or
local variables of other classes. Note that 'text' is also a private method. It
would be fine to only search in the current class.
Comment 1 Frederic Fusier CLA 2005-11-16 09:23:20 EST
I cannot reproduce this one.

I've tried with 3.2 M3 and 3.1.1 in a brand new workspace with only o.e.jdt.ui
project in it and only got 6 exact matches (those of 'text' getter and setter).
I've performed searches on Workspace/Project/Hierarcht and always got same
results as well.

Have you changed anything to JavaSearch path in Plug-ins view?
Comment 2 Martin Aeschlimann CLA 2005-11-16 09:52:28 EST
I think when I filed the bug I succeeded to repoduce this with a fresh
workspace, but now I tried with 20051115 and could not.
But I still have the problem in the workspace I work with. So maybe the index I
have in my workspace has some problems. It can't be very old as we update the
binary plugins every week so the index of these files should rebuild.
Let me know if it helps if I send you any files from my workspace. The workspace
itself is very big.

What for sure seems to me like a bug is that the full workspace is searched, but
this is a private field. 
Comment 3 Frederic Fusier CLA 2005-11-16 10:54:04 EST
Perhaps just give me the list of project you have in your wksp...

Even if I can't reproduce it, I'll let this bug opened to try to optimize search
in this case (not sure that search only in CU is the right solution as we can
have reference to this field even outside but flagged as errors...)
Comment 4 Frederic Fusier CLA 2005-12-05 15:38:35 EST
Sounds similar to bug 119203...
May you try with your workspace and reopen if not fixed?
Thx

*** This bug has been marked as a duplicate of 119203 ***