Community
Participate
Working Groups
I saw the following issue while working on fix for bug 254998... Consider the following test case: class X { /* a comment */ } Format this code using 3.4.1 or 3.5M4 using Eclipse built-in profile, produces the following output: class X { /* a comment */ } but formatting it with 3.3.2, produces: class X { /* * a comment */ } It looks like a regression introduced by the new comment formatter... This would have been not too bad if the formatter didn't behave inconsistently on a slightly different test case: class X { /* a comment */ } is formatted as: class X { /* * a comment */ } by all versions!
Dani, Change for this bug will break testFormatElementInComment() test in CodeFormatterTests. I'll attach corresponding patch when I'm ready to release in HEAD...
Fixed by the patch attached to bug 254998: https://bugs.eclipse.org/bugs/attachment.cgi?id=122118 So, released for 3.5M5.
Created attachment 122122 [details] Patch to fix the failing test in CodeFormatterTest
(In reply to comment #3) > Created an attachment (id=122122) [details] > Patch to fix the failing test in CodeFormatterTest Thanks for the heads up. Fixed in HEAD.
Fortunately, the patch for bug 239607: https://bugs.eclipse.org/bugs/attachment.cgi?id=122271 also fixes this issue... So, released for 3.4.2
As there's no real code change for this bug, set as a duplicate of bug 239607 *** This bug has been marked as a duplicate of bug 239607 ***
Verified for 3.5M5 using I20090125-2000 build.
Verified for 3.4.2 using M20090127-1710.