Bug 6669 - Search doesn't find reference to a field that is only used in an initialization
Summary: Search doesn't find reference to a field that is only used in an initialization
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-07 09:10 EST by Dirk Baeumer CLA
Modified: 2002-01-14 10:37 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 Dirk Baeumer CLA 2001-12-07 09:10:52 EST
Version 20011206

- enter the following code
public class TestSimpleReadAccess {
	public String field;
	
	public void foo() {
		String s= field;
	}
}

Search for references to field: no matches found.
Comment 1 Dirk Baeumer CLA 2001-12-07 09:15:30 EST
The bug seems to be a little bit more complicated. After I closed the wrokspace 
and restarted the workbench, search did find a reference. After changing the 
content to 

		String s= null;
		s= field;

and doing another search the search result was empty again.
Comment 2 Dirk Baeumer CLA 2001-12-07 09:18:35 EST
More findings: searching in hierarchy always reports the correct matches but 
searching in workspace only works for the first search
Comment 3 Dirk Baeumer CLA 2001-12-07 09:38:48 EST
It doesn't happen on the build 20011206. It does happen on a target that I 
start based on that build
Comment 4 Jerome Lanneluc CLA 2001-12-11 06:40:36 EST
Cannot reproduce (even in a target workspace started on build 20011206).
Please reopen if you can reproduce. In this case, please zip your workspace and 
send it to me.