Bug 7344

Summary: Search - write acces give wrong result
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.