Bug 7344 - Search - write acces give wrong result
Summary: Search - write acces give wrong result
Status: RESOLVED FIXED
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 M2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-08 10:15 EST by David Audel CLA
Modified: 2002-01-11 11:34 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 David Audel CLA 2002-01-08 10:15:29 EST
1) create the following class
--------------------------------
public class A {
   public A a;
   public int i;
   public void foo(){
      a.i = 25;
   }
}
--------------------------------
2) select the field "a" in outline
3) search write acces

the search result is the following line
   a.i = 25;
Comment 1 Jerome Lanneluc CLA 2002-01-11 11:34:47 EST
Added check in FieldReferencePattern.matchLevel(NameReference, boolean) to 
ensure that only the last token of a QualifiedNameReference matches in the case 
of a write only access.