Bug 229932 - [formatter] New comment formatter wrongly formats @param tags with wrong syntax
Summary: [formatter] New comment formatter wrongly formats @param tags with wrong syntax
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 RC1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-02 07:09 EDT by Frederic Fusier CLA
Modified: 2008-05-13 06:41 EDT (History)
3 users (show)

See Also:
jerome_lanneluc: review+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.