Bug 30282

Summary: TODO task message shouldn't be multiline
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2003-01-27 08:16:47 EST
Build 20030122

When defining following tasks:

	/**
	 * Suggest name for a setter method. The name is computed from field's 
name.
	 * TODO: (david) should explain better, provide example
	 * @param project project which contains the field.
	 * @param fieldName field's name's.
	 * @param modifiers field's modifiers as defined by the class
	 * <code>Flags</code>.
	 * @param excludedNames a list of names which can not be suggest 
(already use names).
	 *         Can be <code>null</code> if there is no excluded names.
	 * @return String a name.
	 * 
	 * @see Flags
	 * @deprecated use instead suggestSetterName(IJavaProject, String, int, 
boolean, String[])
	 * TODO: (david) remove once jdt/ui has converted
	 */

The message of the first task spans over multiple line. It should stop at the 
first line separator at maximum.

(test case from HEAD NamingConventions)
Comment 1 Olivier Thomann CLA 2003-01-27 08:53:32 EST
For now the end of a todo was the end of line or the beginning of the next one.
I will fix it by setting the end of a todo to the min value between the start of
the next and the first end of line.
Comment 2 Olivier Thomann CLA 2003-01-27 09:17:51 EST
Fixed and released in 2.1 stream. Regression test added.
Comment 3 David Audel CLA 2003-02-10 12:40:17 EST
Verified.