Bug 5563

Summary: Write reference on declaration not reported
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Dani Megert CLA 2001-11-06 04:35:02 EST
If a field is written/assigned together with the declaration then it is not 
reported by a write reference search (IJavaSearchConstants.WRITE_REFERENCES).

Test Case: Search for write references to a field which assigns a value to the 
field directly when it is declared.
  e.g. int fValue= 3;
Comment 1 Jerome Lanneluc CLA 2001-11-13 13:54:39 EST
Field declarations were not taken into account by field reference pattern.

Fixed by looking at field declarations in the case of the write only reference.