Bug 109340 - [Formatter] Wrong positionning of empty statements
Summary: [Formatter] Wrong positionning of empty statements
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 17:17 EDT by Olivier Thomann CLA
Modified: 2005-09-20 12:21 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 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.