Bug 44704 - False negative when searching for a static member variable.
Summary: False negative when searching for a static member variable.
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-11 18:57 EDT by Wassim Melhem CLA
Modified: 2003-11-14 07:26 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 Wassim Melhem CLA 2003-10-11 18:57:19 EDT
Build: 3.0M4

Open the java file org.eclipse.pde.internal.ui.launcher.TracingPropertySource 
(in the org.eclipse.pde.ui plug-in).  Select the static member 
variable "booleanChoices" in the outline view.  From the context menu, select 
References > Workspace.
The search result comes back empty.
This is clearly wrong.  Try to delete this member variable and save.  You will 
see that it is indeed being referenced from within that file.
Comment 1 Kent Johnson CLA 2003-10-14 11:31:22 EDT
I just tried it on M4 & it worked fine. I got 3 matches in a new workspace with 
the pde.ui plugin from source (imported as source with everything else as 
binary plugins).

Please provide repeatable steps which include how the 'test' workspace was 
created.
Comment 2 Wassim Melhem CLA 2003-10-14 12:12:27 EDT
Just tried it again, and I got 0 matches again.
As for my workspace setup, I have org.eclipse.pde.core and org.eclipse.pde.ui 
checked out from CVS, and all other SDK plug-ins are imported as binary 
without links.
Comment 3 Kent Johnson CLA 2003-10-14 13:19:25 EDT
Tried it again by building another new workspace with pde.core & pde.ui from 
CVS... worked fine.

If you have repeatable steps that show the problem please reopen.
Comment 4 Wassim Melhem CLA 2003-10-14 22:06:36 EDT
I got the same thing (0 matches) again trying it on a new workspace, this time 
using steps I described above.
Then, just for fun, I made the file dirty by adding a space and deleting it, 
and saved the file.  After that, the search was actually successful and I got 
three matches.