Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338344 - ASTRewrite should insert newline when adding first Javadoc tag
Summary: ASTRewrite should insert newline when adding first Javadoc tag
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-27 12:39 EST by Markus Keller CLA
Modified: 2020-03-04 17:06 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2011-02-27 12:39:53 EST
HEAD

ASTRewrite should insert a new line when adding the first Javadoc tag (TagElement with non-null name).

Steps: With default formatter settings ("Comments > Blank line before Javadoc tags" enabled), and "Javadoc > Validate tag arguments" enabled, use Quick Fix to add @param tag for "a" here:

public class Test {
	/**
	 * Method m.
	 */
	public void m(int a) {
	}
}

=> No empty line inserted, but formatting the whole file inserts a new line.
Comment 1 Ayushman Jain CLA 2011-02-28 01:27:05 EST
Will investigate, time permitting.
Comment 2 Eclipse Genie CLA 2020-03-04 17:06:52 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.