Bug 72352 - "No completion available" after cast to "String[]"
Summary: "No completion available" after cast to "String[]"
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.1 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 72270 73959 73973 74078 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-20 11:04 EDT by Michael Wuerdemann CLA
Modified: 2004-09-23 09:55 EDT (History)
5 users (show)

See Also:


Attachments

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