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 231573 - "introduce variable" action duplicate comments.
Summary: "introduce variable" action duplicate comments.
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-20 13:58 UTC by lforet
Modified: 2015-10-05 12:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lforet 2013-06-20 13:58:02 UTC
Product Version = NetBeans IDE 7.4 Beta (Build 201306132201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01

 Using the current netbeans 7.4 beta, I encounter the following behaviour :  "introduce variable" to a part of code with right comments, the right comments are also copied to the line of the new variable.

Exemple, the following code :
 return super.getUnmodifiableWidget(); //To change body of generated methods, choose Tools | Templates.

becomes after introducing my new variable :

 final Widget unmodifiableWidget = super.getUnmodifiableWidget(); //To change body of generated methods, choose Tools | Templates.
 return unmodifiableWidget; //To change body of generated methods, choose Tools | Templates.

The comments are seen twice, I don't think it is a wanted behaviour.
Comment 1 Svata Dedic 2015-10-05 12:58:59 UTC
Should be already fixed in 8.0 release