Bug 37422 - formatting static initializer doesn't add a new line before curly brace
Summary: formatting static initializer doesn't add a new line before curly brace
Status: RESOLVED DUPLICATE of bug 17349
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-09 09:42 EDT by Nikolay Metchev CLA
Modified: 2004-05-19 10:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Metchev CLA 2003-05-09 09:42:03 EDT
I have ticked the instert a new line before an opening brace and formatting the 
code below results in:

public class Test
{
   static {
      int x;
   }
}

as can be seen the open brace of the static initializer is in the wrong place.
Comment 1 Adam Kiezun CLA 2003-05-09 11:34:36 EDT
formatter is jdt core
Comment 2 Olivier Thomann CLA 2003-05-12 10:43:06 EDT
This will be investigated for the new formatter.
Comment 3 Olivier Thomann CLA 2003-05-12 10:56:30 EDT
Duplicate of bug 17349

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