Bug 96213

Summary: Eclipse 3.1M7 - Field completion stack overflow
Product: [Eclipse Project] JDT Reporter: Olivier Oeuillot <oeuillot>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Details of the stack overflow none

Description Olivier Oeuillot CLA 2005-05-21 05:51:53 EDT
A field completion into Java editor failed.

See attached file for more detail !
Comment 1 Olivier Oeuillot CLA 2005-05-21 05:52:57 EDT
Created attachment 21549 [details]
Details of the stack overflow
Comment 2 David Audel CLA 2005-05-24 13:18:52 EDT
Fixed and test added
  CompletionTests#testBug96213()


The following method must be added in CompletionParser

protected void consumePrimaryNoNewArrayNameThis() {
  // this is class literal access, so reset potential receiver
  this.invocationType = NO_RECEIVER;
  this.qualifier = -1;
	
  super.consumePrimaryNoNewArrayNameThis();
}
Comment 3 Maxime Daniel CLA 2005-05-27 07:26:15 EDT
Verified on build I20050527-0010.