Community
Participate
Working Groups
Using 3.4.0 candidate (I20080617-2000). While working on bug 233259 fix, I discovered a glitch in method printJavadocBlockReference(FormatJavadocBlock, FormatjavadocReference) of Scribe... Consider the following test case: package test.bugs; public class LongNameClass { /** * @see test.bugs. * LongNameClass#longNameMethod(java.lang.String) */ public void foo() { } void longNameMethod(String str) { } } The format output using Eclipse built-in profile + 'Max line width for comments'=40 is: package test.bugs; public class LongNameClass { /** * @see test.bugs. * * * * * * * * LongNameClass#longNameMethod(java.lang.String) */ public void foo() { } void longNameMethod(String str) { } } I would expect no change in fact, instead 7 new empty lines are wrongly added between the first and second line of the reference...
The comment formatter behavior is definitely weird in this case and should be fixed for 3.4.1.
Created attachment 105620 [details] Proposed patch The space position needed to be reset when a new line was inserted...
Released for 3.5M1 in HEAD stream.
+1 for backport to 3.4.1 as this a regression comparing to 3.3.2
Released for 3.4.1
Verified for 3.5M1 using I20080805-1307
Reopen to close as RESOLVED/FIXED. Will be closed as VERIFIED during 3.4.1 verification pass.
Fixed.
*** Bug 239605 has been marked as a duplicate of this bug. ***
Verified for 3.4.1 using M20080827-2000