This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122951 - Auto generate {@inheritDoc} using /** + ENTER
Summary: Auto generate {@inheritDoc} using /** + ENTER
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-28 11:05 UTC by roridge
Modified: 2013-08-30 11:48 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roridge 2007-11-28 11:05:57 UTC
When generating Javadoc for a method using /** + ENTER.

As well as the Params and Return etc, it would be cool if it could detect if the method that is implemented is
Overridden or Implemented, and add {@inheritDoc} for you.

So the JDoc stubb would be:

/**
*
* {@inheritDoc}
* @param name 
* @return 
*/

what do you think?
Comment 1 Jan Pokorsky 2007-11-29 14:26:58 UTC
It would have to generate

/**
 *
 * {@inheritDoc}
 * @param name {@inheritDoc}
 * @return {@inheritDoc}
 */

in your case in order to make sense. Or better 

/**
 *
 * @param name {@inheritDoc}
 * @return {@inheritDoc}
 */

since the main description and missing block tags are copied by default
(http://java.sun.com/javase/6/docs/technotes/tools/solaris/javadoc.html#inheritingcomments).

It should not be much work since the checking of inherit comments was already implemented for javadoc editor hints.
Thanks for tip.
Comment 2 roridge 2007-11-29 18:41:10 UTC
NP, thanks for looking into it.
Comment 3 Ralph Ruijs 2013-08-30 11:48:10 UTC
description and missing block tags are copied by default