Search code examples
javaeclipsecommentsjavadoc

Eclipse Javadoc commenting not working


I am writing to write JavaDoc for my classes in eclipse and the automatic generation process does not seem to work.

If I try /** and enter, it creates the surrounding comment block but fails to add any @param or @return tags. Any ideas what might be wrong here?

EDIT: it seems to have this behaviour only for interfaces or classes implementing user defined interfaces.


Solution

  • Typing /** and pressing Enter only helps complete the comment. If you want to generate a boilerplate JavaDoc comment, select the method and use the Source context menu to generate the boilerplate.