Bug 80432 - Code Assist box exhibits strange behavior in an endless for loop
Summary: Code Assist box exhibits strange behavior in an endless for loop
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-07 17:43 EST by anton CLA
Modified: 2005-06-10 12:05 EDT (History)
0 users

See Also:


Attachments
Proposed patch (1.08 KB, text/plain)
2005-06-02 08:47 EDT, David Audel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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