Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 39093

Summary: Smart opening brace doesn't allow array initialisers
Product: [Eclipse Project] JDT Reporter: Channing Walton <channingwalton>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: All   
Whiteboard:
Bug Depends on: 38565    
Bug Blocks:    

Description Channing Walton CLA 2003-06-18 16:55:04 EDT
one cannot initialise arrays in complex statements because the opening brace is
put at the end of the line when you want it to be where you're typiing.

e.g.

assume you wish to call this method:
void foo(String[] array) ...

you use ctrl space to complete the method call (| = cursor):

foo(|)

start typing: new String[] {

you will get:

foo(new String[]) {|

the opening brace is put at the end.
Comment 1 Channing Walton CLA 2003-09-07 18:00:43 EDT
seems to be fixed.