Bug 20137 - Sometimes malformed Javadoc for type generated [code manipulation]
Summary: Sometimes malformed Javadoc for type generated [code manipulation]
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-06-13 07:40 EDT by Dani Megert CLA
Modified: 2003-04-01 10:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2002-06-13 07:40:57 EDT
Build F3

1. Create an empty Java file T.java in a default package
2. Write:
<tab>public T {
}
3. Select T in the Outline view
4. From the Outline's context menu select "Generate Javadoc Comment"
==> the result is malformed Javadoc:
	/**
		 * @author dmegert
		 *
		 * To change this generated comment edit the template variable "typecomment":
		 * Window>Preferences>Java>Templates.
		 * To enable and disable the creation of type comments go to
		 * Window>Preferences>Java>Code Generation.
		 */
	public class Test {

Notes:
1) this is not a regression from fixing (it was already in 20020611)
2) it works if the typecomment template is removed
Comment 1 Dirk Baeumer CLA 2002-07-30 13:11:31 EDT
Still exists in 2.0. Works correctly if type is entered without the leading 
<tab>.

Comment 2 Dani Megert CLA 2002-08-05 09:44:10 EDT
Should fix since all inner classes have at least 1 tab
Comment 3 Martin Aeschlimann CLA 2003-04-01 08:22:49 EST
works in 2.1