Community
Participate
Working Groups
class X { void foo(){} // comment void bar(){} } should format into: class X { <--- ensure one empty line void foo(){ } <--- ensure one empty line // comment <--- no line in between comment and body void bar(){ } } NOTES: PM (7/30/2001 4:04:38 PM) We might want an option for this (maybe 2 options: one for empty line before comment/decl, and one for empty line between comment and decl).
The formatter doesn't know what a method declaration is. It works only on tokens. In order to solve this problem, that implies that the code formatter knows when it reached a method declaration (a method header) or when it closes the last brace of a method declaration.
PRODUCT VERSION: 0.9
Defer
Resurrecting formatter issues in 2.1 stream.
Clearing resolution
*** Bug 12004 has been marked as a duplicate of this bug. ***
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new implementation is still in the works. Therefore we cannot include it for 2.1. Not enough testing and we need to polish the preferences. This will be address for 2.2 as stated in the JDT/Core plan.
Resurrecting for 3.0
Reopen for 3.0 consideration.
This is addressed in the new formatter. Fixed and released in HEAD. Regression test added.
Verified.