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 202704 - Pasted class, all inner class names got replaced with name of outer class
Summary: Pasted class, all inner class names got replaced with name of outer class
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 23:29 UTC by theosib
Modified: 2013-07-12 02:29 UTC (History)
1 user (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 theosib 2011-09-26 23:29:06 UTC
Product Version = NetBeans IDE Dev (Build 201109070600)
Operating System = Mac OS X version 10.7.1 running on x86_64
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.1-b02-383

I copied a class from one file to another.  When I pasted, all of the inner class names used within the outer class got replaced with the name of the outer class.
Comment 1 MackSix 2011-10-17 18:31:14 UTC
I am setting this to P3 as I do not see why it is a P2 per the Bug Priority Guidelines.

http://wiki.netbeans.org/BugPriorityGuidelines

I can't reproduce this problem on the latest Dev build on Windows. I don't have a Mac, so I will leave this open as NEW. 

Please provide example files so I can see if I can reproduce it on Windows.
Comment 2 Jan Lahoda 2013-07-11 11:59:00 UTC
When copy&pasting class and its usage, don't try to import the original class for the usage:
http://hg.netbeans.org/jet-main/rev/369e7a16d987
Comment 3 Quality Engineering 2013-07-12 02:29:49 UTC
Integrated into 'main-silver', will be available in build *201307112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/369e7a16d987
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #202704: when copy&pasting class and its usage, don't try to import the original class for the usage.