Bug 109340

Summary: [Formatter] Wrong positionning of empty statements
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2005-09-12 17:17:22 EDT
Using latest, the empty statements in the following source should be on the same
line than the previous statement and not moved to the next line when the
settings are to keep the empty statement on the same line.

public class A {
	public A(int i) throws IOException, Exception {
		int i = 0;
		i = 2;;;
	}
}

Right now we get:
public class A {
	public A(int i) throws IOException, Exception {
		int i = 0;
		i = 2;
		;;
	}
}
Comment 1 Olivier Thomann CLA 2005-09-12 17:17:42 EDT
Fix is trivial.
Comment 2 Olivier Thomann CLA 2005-09-12 17:20:14 EDT
Fixed and released in HEAD.
Updated existing tests.
Comment 3 Maxime Daniel CLA 2005-09-20 12:19:09 EDT
Verified for 3.2 M2 on build Build id: I20050920-0010.