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 201780 - cut/paste problem
Summary: cut/paste problem
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC All
: P2 normal with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 201858 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-07 20:23 UTC by williambacchi
Modified: 2011-09-14 06:23 UTC (History)
2 users (show)

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 williambacchi 2011-09-07 20:23:31 UTC
when pasting variable declarations in a new class a window pops up asking me if I want to resolve missing imports.

If I click ok a declaration like

private String a,b,c,d;

becomes

 private StringStringStringString a,b,c,d;
Comment 1 Milutin Kristofic 2011-09-08 08:06:36 UTC
Reproducible. It's probably because there is definition for more variables.

public class JavaApplication7 {
    private String a, b, c, d;
    private Random rnd;
}

copy 
    private String a, b, c, d;
    private Random rnd;

to 

public class NewClass {
}

and you get 

public class NewClass {
    private StringStringStringString a, b, c, d;
    private Random rnd;
}
Comment 2 Jan Lahoda 2011-09-13 12:42:53 UTC
*** Bug 201858 has been marked as a duplicate of this bug. ***
Comment 3 Jan Lahoda 2011-09-13 12:55:42 UTC
This should be fixed by:
http://hg.netbeans.org/jet-main/rev/d03940d0fa1b

Thanks for the report.
Comment 4 Quality Engineering 2011-09-14 06:23:53 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/d03940d0fa1b
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #201780: fixing handling of field groups in transfer types through copy&paste