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 236078 - [Move Class] It is possible to move class to itself
Summary: [Move Class] It is possible to move class to itself
Status: RESOLVED DUPLICATE of bug 223782
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-17 14:52 UTC by Jiri Prox
Modified: 2013-10-22 12:41 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 2013-09-17 14:52:18 UTC
It is possible to move class to itself. In such case the whole class is deleted

Steps to reproduce:
1) have a class A
2) call Move refactoring on it
3) select 'To Type' and select the class A
4) perform refactoring

-> class A is deleted (undo works fine and restores the class again)


Product Version: NetBeans IDE Dev (Build 20130917-514f277e3674)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Jiri Prox 2013-10-22 12:41:21 UTC

*** This bug has been marked as a duplicate of bug 223782 ***