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

Bug 39122

Summary: Problematic to type shortcut array declaration
Product: [Eclipse Project] JDT Reporter: Dean Roberts <dean.t.roberts>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 38565    
Bug Blocks:    

Description Dean Roberts CLA 2003-06-19 10:17:28 EDT
Type the following line in a Java editor

return new String();

now position the cursor to the right of the 'w' in new and try to edit the 
line to show.

return new Object[] {new String(), new String()};

Everytime you type the { character it gets appended to the end of the line.

Typing the line from scratch works except you seem to get an extra space or 2 
before the { characer.
Comment 1 Tom Hofmann CLA 2003-12-11 05:39:35 EST
fixed a while ago.