Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #300162 +++ Build Identifier: M20090917-0800 As said in bug 300162 comment 4, there's first problem described in comment 0 is fixed in 3.6 since bug 294529 has been fixed... However, there's still an AssertionFailedException while formatting the following simple test: package format.test; public class Test { public static void main(String[] args) { String s="X"+/** ***/"Y"; } }
The problem comes from the FormatterCommentParser which wrongly stores the first star of the 3 ending ones as the end of the javadoc text, although it should store the last star position instead...
Created attachment 158477 [details] Proposed patch The proposed solution is to not push the last text when there are contiguous stars at the end of the javadoc comment...
Released for 3.6M6 in HEAD stream.
Verified for 3.6M6 using I20100307-2000.