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

Bug 237466

Summary: [typing] Auto insert of closing } is done wrong
Product: [Eclipse Project] JDT Reporter: Quintin Beukes <eclipse.org>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert, eclipse.org
Version: 3.3.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Quintin Beukes CLA 2008-06-17 09:46:20 EDT
Build ID: Build id: M20080221-1800 

Steps To Reproduce:
1. Type: sectionNames = Arrays.asList(new String[] );
2. Then insert { like: sectionNames = Arrays.asList(new String[] {);
3. Then press enter from here
4. It ends up like:
sectionNames = Arrays.asList(new String[] {
                                           );
}
5. Should end up like:
sectionNames = Arrays.asList(new String[] {

});


More information:
If you can't reproduce, then it might be a configuration option causing it on my side. Let me know and I'll see what I can come up with.

I can reproduce that every time I try it, and in more than one file/project.
Comment 1 Dani Megert CLA 2008-06-18 05:26:05 EDT

*** This bug has been marked as a duplicate of bug 29379 ***