Bug 171634

Summary: [formatter] doesn't add line feed at end of file
Product: [Eclipse Project] JDT Reporter: Berno Langer <berno.langer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2.1   
Target Milestone: 3.3 M5   
Hardware: Other   
OS: Linux-GTK   
Whiteboard:

Description Berno Langer CLA 2007-01-25 04:31:53 EST
I have configured the code formatter in the "New Lines" tab and checked the "at end of file" checkbox.

When a Java class ends with a comment, e.g.

public class MyClass {
}
// comment with no "new line" at the end

the code formatter doesn't add a new line.

But the new line is correctly added when the last comment isn't there, or the comment is a /* ... */ comment.
Comment 1 Olivier Thomann CLA 2007-01-26 13:47:58 EST
Released for 3.3M5.
Added regression tests org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests#test643-649
Comment 2 Eric Jodet CLA 2007-02-06 06:33:13 EST
Verified for 3.3 M5 using build I20070205-0009