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 92325

Summary: JavaDoc for constructor from class template is added to field
Product: java Reporter: Erno Mononen <emononen>
Component: SourceAssignee: Pavel Flaska <pflaska>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 90607    
Attachments: patch for GenerationUtilsTest

Description Erno Mononen 2007-01-11 13:46:19 UTC
When you create a class and add a field to it, the javadoc for the constructor 
from the class template gets added to the field as well. The generated class 
looks like the following:

class MyClass {
/** constructor javadoc from template */
String myField;
/** constructor javadoc from template */
MyClass(){}
...
}

Attached is a patch for o.n.m.j2ee.common.source.GenerationUtilsTest that 
demonstrates the problem.
Comment 1 Erno Mononen 2007-01-11 13:53:44 UTC
Created attachment 37272 [details]
patch for GenerationUtilsTest
Comment 2 Erno Mononen 2007-04-19 15:39:30 UTC
This seems to be fixed, at least it is not reproducible for me anymore. So I'm 
closing this.