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:
but it also required non-trivial changes in codegen:
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)
User: Jan Lahoda <firstname.lastname@example.org>
Log: #170213(first part): introduce method should correctly copy comments.