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.
Suppose you have a SuperClass like this: public class SuperClass { public void method1() { } /** * * Something should really go here. * */ public void method2() { } } and SubClasses like this: public class NewClass1 extends SuperClass { public void methodA() { } } public class NewClass2 extends SuperClass { public void methodA() { } } public class NewClass3 extends SuperClass { public void methodA() { } } If you push down method2 in SuperClass, it duplicates the comments above it for each class that the method is pushed down to. Resulting in: public class NewClass1 extends SuperClass { public void methodA() { } /** * * Something should really go here. * */ public void method2() { } } public class NewClass2 extends SuperClass { public void methodA() { } /** * * Something should really go here. * */ /** * * Something should really go here. * */ public void method2() { } } public class NewClass3 extends SuperClass { public void methodA() { } /** * * Something should really go here. * */ /** * * Something should really go here. * */ /** * * Something should really go here. * */ public void method2() { } }
Product Version: NetBeans IDE Dev (Build 201111120600) Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
This applies to comments on Fields too.
Still Valid in v7.1.1 Fixed in: Product Version: NetBeans IDE Dev (Build 201204060400) Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb
*** This bug has been marked as a duplicate of bug 208705 ***