Bug 92451 - code assist failure: new+cast+arrays
Summary: code assist failure: new+cast+arrays
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 82056 87681 87876 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-22 16:36 EDT by John Wiegand CLA
Modified: 2005-05-12 14:19 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Wiegand CLA 2005-04-22 16:36:37 EDT
I20050419
J2SE 5 (but also fails in JDK 1.4)

Code assist fails in the following (self-contained) class (see comments for 
line of error)

public class Test {
	public static void main(String[] args) {
		java.util.List elements = null;
		// code assist works on this line
		new Test(Test.toStrings((Test[])elements.toArray(new Test
[0])));
		//code assist fails on this line
	}
	public Test(Object object) {
	}
	public static Object toStrings(Test[] objects) {
		return null;
	}
}
Comment 1 David Audel CLA 2005-04-25 11:08:26 EDT
Fixed and test added
  CompletionParserTests2#test0151()

The problem is inside CompletionParser#consumeInsideCastExpression().
Comment 2 David Audel CLA 2005-04-29 07:21:45 EDT
*** Bug 82056 has been marked as a duplicate of this bug. ***
Comment 3 David Audel CLA 2005-04-29 07:55:33 EDT
*** Bug 87876 has been marked as a duplicate of this bug. ***
Comment 4 David Audel CLA 2005-04-29 09:33:25 EDT
*** Bug 87681 has been marked as a duplicate of this bug. ***
Comment 5 Olivier Thomann CLA 2005-05-12 14:19:36 EDT
Verified in I20050510-0010 + JDT/Core v_556