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 IDE Dev (Build 200908110201) Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02 System: Linux version 2.6.24-23-generic running on i386; UTF-8; en_US (nb) Line comments are lost when introducing method. Steps to reproduce: 1) select several lines where some contains line comments 2) introduce method from selection -> inline comments are lost
Reassigning all moonko's java/source bugs to myself.
*** Issue 172066 has been marked as a duplicate of this issue. ***
The part in java.hints was quite simple: http://hg.netbeans.org/main-silver?cmd=changeset;node=6164f16b62a7 but it also required non-trivial changes in codegen: http://hg.netbeans.org/main-silver?cmd=changeset;node=a9711e857d8b As a consequence, comments handling in codegen may be less forgiving - some clients that did not do importComments/copyComments so far might need to do that now, etc. This especially relates to clients that add/remove statements to method bodies. David, Petr, if you see any suspicious problems regarding Java code generation and comments, please, let me know, I will look at them. Thanks.
Integrated into 'main-golden', will be available in build *200910280201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6164f16b62a7 User: Jan Lahoda <jlahoda@netbeans.org> Log: #170213(first part): introduce method should correctly copy comments.