Bug 229569

Summary: [formatter] New comments formatter does not indent lines inside immutable tags
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, jerome_lanneluc, kent_johnson
Version: 3.4   
Target Milestone: 3.4 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2008-04-30 04:31:26 EDT
Discovered while verifying bug 229107 using build I20080729-0100.

To avoid confusion with bug on tables tags, here's a more simple test case illustrating the problem:

public class X02 {

/**
 * Text <code>immutable
 * tag written on
 * several lines</code>
 * End
 */
void foo() {
}
}

is wrongly formatted as:

public class X02 {

	/**
	 * Text <code>immutable
 * tag written on
 * several lines</code> End
	 */
	void foo() {
	}
}
Comment 1 Frederic Fusier CLA 2008-04-30 04:32:56 EDT
Immutable tags are currently not formatted at all. This is not correct, indentation at the beginning of the javadoc line (i.e. before the first '*') should be set according to the global javadoc indentation...
Comment 2 Frederic Fusier CLA 2008-05-07 12:07:38 EDT
Sorry, I forgot to close this bug...
Released for 3.4M7.
Comment 3 Jerome Lanneluc CLA 2008-05-07 12:08:55 EDT
Verified for 3.4M7 using I20080502-0100