Bug 22336

Summary: formatter doesn't indent correctly static block
Product: [Eclipse Project] JDT Reporter: jean-louis willems <jean-louis.willems>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1   
Hardware: PC   
OS: Windows 98   
Whiteboard:
Attachments:
Description Flags
Proposal to correct this bug. Including some previous/next lines none

Description jean-louis willems CLA 2002-08-11 07:30:13 EDT
The begin-block mark '{' of the static block isn't vertical align with the end-
block mark '}'.

 Preferences  : Java -> Code Formatter -> New Lines 
 --------------------------------------------------
   active  :  insert a line before an opening brace
   active  :  insert new lines in control statements
 inactive  :  Clear all blank lines
 inactive  :  insert new line between 'else-if'
   active  :  insert a new line inside an empty block

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
public class StaticProblem
{
	static {
		// ...
	}
	void myFunction()
	{
		if ( true )
		{
			// ...
		}
	}
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Comment 1 jean-louis willems CLA 2002-08-11 13:31:43 EDT
Created attachment 1828 [details]
Proposal to correct this bug. Including some previous/next lines
Comment 2 Olivier Thomann CLA 2002-10-11 09:32:50 EDT
Thanks for the proposal. Right now we are revisiting the whole implementation of
the code formatter. So for now we don't plan to apply bug fixes in the current
implementation.
Comment 3 Olivier Thomann CLA 2002-11-05 16:52:31 EST

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