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 133758 - Comment is duplicated when hint is applied
Summary: Comment is duplicated when hint is applied
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-23 13:00 UTC by Jiri Prox
Modified: 2016-07-07 07:16 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 Jiri Prox 2008-04-23 13:00:20 UTC
Product Version: NetBeans IDE Dev (Build 20080423054047)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)

Comment on previous line is duplicated when hint is applied.

Steps to reproduce:
1) have a code:

public class HelloClass {
    
    public void neco() {
        System.out.println(""); //comment

        s =3;
    }

}

2) use hint to create local variable (it's reproducible with other hints as well)

-> method code is changed to:
    public void neco() {
        System.out.println(""); //comment

        //comment
        int s = 3;
    }
Comment 1 Rastislav Komara 2009-02-03 10:56:46 UTC
Overtake.
Comment 2 Jan Lahoda 2009-08-20 10:00:16 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 3 Martin Balin 2016-07-07 07:16:35 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss