Bug 72352

Summary: "No completion available" after cast to "String[]"
Product: [Eclipse Project] JDT Reporter: Michael Wuerdemann <wuerdemann>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: andrewsc, daniel_megert, Michael.Valenta, sven, walle
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Michael Wuerdemann CLA 2004-08-20 11:04:40 EDT
I'm using 3.1M1

In all lines behind this code fragment

	String name = (String) eURLParamNames.nextElement();
	String[] values = (String[]) htURLParams.get(name);

the code completion fails.

With
	String name = (String) eURLParamNames.nextElement();
	String[] values = (String) htURLParams.get(name);
the code completion works.

It seems to depend on the cast...
Comment 1 Dani Megert CLA 2004-08-23 06:05:31 EDT
Reproducible using I200408170800 (1.4 compliance level):

public class Test {
	Object m;
	String[] values = (String[]) m;
	lo<code assist>
}
==> no completion

Happens with all non-primitive array casts.

Marking as critical since having such an array cast in any part of the CU breaks
code assist.
Comment 2 Dani Megert CLA 2004-08-23 06:05:36 EDT
*** Bug 72270 has been marked as a duplicate of this bug. ***
Comment 3 David Audel CLA 2004-08-23 12:53:17 EDT
Fixed and test added
  CompletionParserTest2#test0147()
Comment 4 David Audel CLA 2004-09-15 07:29:33 EDT
*** Bug 73973 has been marked as a duplicate of this bug. ***
Comment 5 David Audel CLA 2004-09-15 08:57:34 EDT
*** Bug 73959 has been marked as a duplicate of this bug. ***
Comment 6 David Audel CLA 2004-09-17 03:49:56 EDT
*** Bug 74078 has been marked as a duplicate of this bug. ***
Comment 7 David Audel CLA 2004-09-23 09:55:19 EDT
Verified in I200409240100.