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.
Summary: | Editor uses default template instead of modified template for existing class | ||
---|---|---|---|
Product: | java | Reporter: | fortiernor |
Component: | Javadoc | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
fortiernor
2015-12-18 14:31:41 UTC
Can you please provide more detailed info? What was content of editor before adding javadoc? Which action did you use to generate javadoc? What was the final state of editor? Thanks Default template inserts my user name (linux session user name) after "@author ". Modified template inserts my full name after "@author ". Content of editor was valid class file (*.java); that file contained no javadoc for class declaration (top of editor has package name then imports, then class declaration). To generate javadoc I placed cursor on the line just above class declaration, then type "/**" then space. The editor then inserted the javadoc template but instead of showing "@author [full name]" (modified template) it shows "@author [session user name]". I can reproduce with any class file: I delete the javadoc just above class declaration, then proceed as above (insert javadoc) with same result. If I create a class file using menu item "New File..." / Java / Java class, then the file is created with modified template, including the correct javadoc with "@author [full name]". Thanks for info. The problem is that generating javadoc with /** is not related to templates. Maybe there should be way how to configure "/**" javadoc stub. I see, that explains it. No big deal but I did find that behaviour counter-intuitive. Thank you. |