Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331656 - [typing] Javadoc comment generation does not work properly when comments are above the method
Summary: [typing] Javadoc comment generation does not work properly when comments are ...
Status: CLOSED DUPLICATE of bug 38185
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 07:22 EST by JF CLA
Modified: 2010-12-02 07:47 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JF CLA 2010-12-02 07:22:01 EST
Build Identifier: 20100617-1415

If you try to create a javadoc comment above a function header by typing /** <RETURN>, it usually creates a template containing all parameters, exceptions and the return value, so that you only have to fill in these values and can't forget something. However, if there happens to be a comment above the method you only get /** \n * \n */ instead.

Reproducible: Always

Steps to Reproduce:
1. Create a method and make a one-line comment above that method
2. Try creating a javadoc comment by typing /** <RETURN>
Comment 1 Ayushman Jain CLA 2010-12-02 07:32:57 EST
Reproduced when the javadoc is being written between the comment and the method declaration.

Moving to JDT/UI for comment.
Comment 2 Dani Megert CLA 2010-12-02 07:47:05 EST

*** This bug has been marked as a duplicate of bug 38185 ***