| Summary: | Smart opening brace doesn't allow array initialisers | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Channing Walton <channingwalton> |
| Component: | Text | Assignee: | 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: | |||
seems to be fixed. |
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.