Bug 11640

Summary: Bug in the code formatter
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: mle
Version: 2.0   
Target Milestone: 2.0 M5   
Hardware: Other   
OS: other   
Whiteboard:

Description Olivier Thomann CLA 2002-03-19 10:42:37 EST
In build 0314, the following code is not formatted properly.
This is a regression from previous 
build.

[public class FormaterBug {
	public static void main(String[] args) 
{
	}
	public synchronized void method1() {
	}
		public synchronized void method2() 
{
		}
			public synchronized void method3() {
			}
				public synchronized void 
method4() {
				}
					public synchronized void method5() {
					}
						public 
synchronized void method6() {
						}
							public synchronized void method7() 
{
							}
}]
Comment 1 Olivier Thomann CLA 2002-03-19 13:03:30 EST
Fixed and released in HEAD. Will be available for the next build (after M4).
Comment 2 Philipe Mulet CLA 2002-03-20 14:32:24 EST
Will go into M4
Comment 3 markusle CLA 2002-03-23 08:08:39 EST
I noticed that my first bug report was fixed in stable build
20020321, but a variation becomes still bad formated 
(as I think):

package de.neze.ide.wsw;
public class FormaterBug {
	public static void main(String[] args) {
		Object o = null;
		synchronized (o) {
			// DO dsomething
		}
			// Why does the code formater indent that lines?
			o = o;
			o = null;
			o = o;
			o = null;
	}
}
Comment 4 Olivier Thomann CLA 2002-03-25 12:15:47 EST
Regression tests added. If you find another problem, please reopen it.
Fixed and released in 
HEAD.