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 147589 - Improve comments handling in introduce method
Summary: Improve comments handling in introduce method
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2008-09-18 12:42 UTC by Jiri Prox
Modified: 2013-09-02 14:21 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2008-09-18 12:43:34 UTC
Product Version: NetBeans IDE Dev (Build 20080916041613)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)

The inline comment handling for introduce method can be improved. Now, the comments just before and after extracted code
are doubled.

Steps to reproduce:
1) have a code:

        // comment 1
        // comment 2

2) select whole 2nd line
3) introduce method
-> the comments are copied to new method, although they were not selected