Bug 80432

Summary: Code Assist box exhibits strange behavior in an endless for loop
Product: [Eclipse Project] JDT Reporter: anton <anton>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description anton CLA 2004-12-07 17:43:44 EST
Build Id: 200409161125

Type the following code: (line number provided)

01. String foo = "foobar";
02. 
03. for( ;; )
04. {
05.  foo.
----
at this point the Code Assist box will appear giving you a list of String
functions.  Continue typing:
----
05.       charAt( foo.
----
here, no Code Assist box pops up for some reason.  That's a problem.

Now, here's the kicker.
If we replace line 1 with 
01. while( true )
or
01. for( int i = 0; i < 10; )
or
01. for( int i = 0; i < 10; i++ )

then the code assist on the parameter call works.
but when for( ;; ) is  used which is perfectly valid 
Java code, then the code assist fails to appear.
Comment 1 anton CLA 2004-12-08 09:56:20 EST
argh,
when I say
> If we replace line 1 with ....
I of course mean
If we replace line 3 with ....
Comment 2 Philipe Mulet CLA 2005-06-02 08:43:03 EDT
+1 for RC2
Comment 3 David Audel CLA 2005-06-02 08:47:53 EDT
Created attachment 22221 [details]
Proposed patch
Comment 4 David Audel CLA 2005-06-02 08:50:51 EDT
Fixed and test added
  GenericsCompletionParserTest#test0188()
Comment 5 Olivier Thomann CLA 2005-06-06 15:00:55 EDT
Verified using N20050606-0010
Comment 6 Frederic Fusier CLA 2005-06-10 12:05:59 EDT
Verified for 3.1 RC2 using build I20050610-0010