Community
Participate
Working Groups
Build N20091112-2000, since bug 294529 has been released. The following test case: public class X { /** * <p> * "String", this string may be not well formatted in certain circumstances, * typically after bug 294529 has been fixed... */ void foo() {} } is formatted as follow: public class X { /** * <p> *"String", this string may be not well formatted in certain circumstances, * typically after bug 294529 has been fixed... */ void foo() { } } Note that a space is missing before the "String"...
This is a side effect of the fix for bug 294529. It exhibits a problem in the comment formatter... The fix is trivial.
Created attachment 152245 [details] Proposed patch Hmmm, finally not so easy... The fact that the exception is now correctly raised, made the formatter typically wrong while computing length of immutable tags. This patch improves the ouptput of more than 1,200 files while running the massive tests on all full source workspaces!
Here are some other test cases fixed by the patch: 1) InvalidInputException inside a <code> tag public class X01 { /** * Finds the deepest <code>IJavaElement</code> in the hierarchy of * <code>elt</elt>'s children (including <code>elt</code> itself) * which has a source range that encloses <code>position</code> * according to <code>mapper</code>. */ void foo() {} } 2) Text starting without space on a javadoc comment line: public interface X02 { /** *Formatter misses to insert the space at the beginning of the line *<p>In this case also... * * <p> * <BR> *<B>In this case also</B> **/ void foo(); }
Released for 3.6M4 in HEAD stream.
Verified for 3.6M4 using Build id: I20091207-1800