Bug 229932

Summary: [formatter] New comment formatter wrongly formats @param tags with wrong syntax
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-05-02 07:09:32 EDT
Using build I20080502-0100 but should exist since new comment formatter has been activated.

The following test case:

public class X {

	/** 
	 * @param <code>text</code>, the string to match
	 */
	public void foo(String text) {
	}
}

is wrongly formatted as follow:

public class X {

	/**
	 * @param <
	 * 		code>text</code>, the string to match
	 */
	public void foo() {
	}
}

Note that if the Javadoc preferences have been set to 'Process Javadoc comments' + 'Malformed Javadoc comments' = Warning, then a warning is displayed by the compiler: 
<code>text</code>
^^^^^^^^^^^^^^^^^ Javadoc: Invalid tag name
Comment 1 Frederic Fusier CLA 2008-05-06 05:50:13 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:37 EDT
Released for 3.4RC1 in HEAD stream.
Comment 3 Eric Jodet CLA 2008-05-13 06:41:49 EDT
Verified for 3.4RC1 using build I20080510-2000.