Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331656

Summary: [typing] Javadoc comment generation does not work properly when comments are above the method
Product: [Eclipse Project] JDT Reporter: JF <jfbugcatcher>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, daniel_megert, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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 ***