Bug 5563 - Write reference on declaration not reported
Summary: Write reference on declaration not reported
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 major (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-06 04:35 EST by Dani Megert CLA
Modified: 2002-01-11 09:22 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 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.