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.
Product Version = NetBeans Platform Dev (Build 110310-ad4af61c7e83) Operating System = Mac OS X version 10.5.8 running on x86_64 Java; VM; Vendor = 1.6.0_24 Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334 Only dev build issue - not in 7.0 due to some changes in refactoring. public class NewClass extends A { private void a() { //aa } private void b() { //bb } } class A { } Pull Up both methods (a(), b()) to class A both comments in both methods are duplicated: public class NewClass extends A{ } class A { protected void a() { //aa //aa } protected void b() { //bb //bb } }
I'm not sure, but it looks like issue in java/source. I call GeneratorUtilities.importComments() exactly once for each method, which is being pulled up. But maybe I do something wrong.
I will create minimal unit test showing this issue.
I most likely see where the problem is.
Created attachment 107273 [details] Unit Test
Thanks for the report. http://hg.netbeans.org/jet-main/rev/fb16a734bd85
Integrated into 'main-golden', will be available in build *201103280400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fb16a734bd85 User: Jan Lahoda <jlahoda@netbeans.org> Log: #197057: preventing duplicate assignments of inner comments.