Bug 71702

Summary: code completion doesn't work anymore after Array cast.
Product: [Eclipse Project] JDT Reporter: Johan Compagner <jcompagner>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Johan Compagner CLA 2004-08-10 06:07:02 EDT
using this code:

package foo;

import java.util.ArrayList;

public class foo 
{
        public foo(int x)
        {
        		String[] tmp = new String[10];
        		ArrayList al = new ArrayList();
        		tmp = (String[])al.toArray(tmp);
        }
}

then after the Array cast (String[])
code completion doesn't work anymore

I am using version:

Version: 3.1.0
Build id: 200408031300

but i also now that this also happens in 3.0 code.
Comment 1 Markus Keller CLA 2004-08-10 06:39:30 EDT
Works in 3.0. Doesn't work in 200408031300.

Moving to core since codeComplete(int offset, ICompletionRequestor requestor)
doesn't report any completions.
Comment 2 David Audel CLA 2004-08-16 06:42:58 EDT
Fixed and tests added
  CompletionParserTest2#test0143() -> test0146()
  GenericsCompletionParserTest#test0171() -> test0176