Bug 71702 - code completion doesn't work anymore after Array cast.
Summary: code completion doesn't work anymore after Array cast.
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-10 06:07 EDT by Johan Compagner CLA
Modified: 2005-01-11 11:02 EST (History)
1 user (show)

See Also:


Attachments

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