Bug 229683

Summary: [formatter] New comment formatter takes 2 passes to format when tags are inside text
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, eric_jodet, jerome_lanneluc
Version: 3.4Flags: jerome_lanneluc: review+
Target Milestone: 3.4 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2008-04-30 13:42:08 EDT
Using build 20080427-2000.

The new comment formatter needs 2 passes to format the following test case:
public class X {
	/**
	 * Returns a complete node containing the contents of the subtree 
	 * rooted at @key in the receiver.  Uses the public API.
	 *
	 * @param key
	 *	key of subtree whose contents we want to copy.
	 */
	void foo(String key) {
	}
}
Comment 1 Frederic Fusier CLA 2008-05-06 05:50:01 EDT
The patch fixing this issue has been attached to bug 230230.
Jerome can you please review?
Comment 2 Frederic Fusier CLA 2008-05-06 07:08:29 EDT
Released for 3.4RC1 in HEAD stream.
Comment 3 Eric Jodet CLA 2008-05-13 06:08:31 EDT
Verified for 3.4RC1 using build I20080510-2000.

Note that expected output after the single pass formatting is:

/**
 * Returns a complete node containing the contents of the subtree rooted at @key
 * in the receiver. Uses the public API.
 * 
 * @param key
 *      key of subtree whose contents we want to copy.
 */