Community
Participate
Working Groups
Using 3.4M7 The new comment formatter split comment incorrectly splits comment lines between contiguous tokens as shown in following sample: public class X { boolean inTitle; void foo(String tagName) { inTitle = tagName.equals("<title"); // keep track if in <TITLE> } } formatted as follow with maximum line width for comments = 70: public class X { boolean inTitle; void foo(String tagName) { inTitle = tagName.equals("<title"); // keep track if in <TITLE // > } } Although we should get: public class X { boolean inTitle; void foo(String tagName) { inTitle = tagName.equals("<title"); // keep track if in // <TITLE> } }
The Scribe.printLineComment(int,int) method also needs to put contiguous tokens into temporary buffer before print them. The same mechanism used for block and javadoc comments also has to be used for line comments.
The patch fixing this issue has been attached to bug 230230. Jerome can you please review?
Released for 3.4RC1 in HEAD stream.
Verified for 3.4RC1 using build I20080510-2000.