Bug 11640 - Bug in the code formatter
Summary: Bug in the code formatter
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: Other other
: P2 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-19 10:42 EST by Olivier Thomann CLA
Modified: 2002-03-25 12:15 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.