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 234723 - Undo does not delete package
Summary: Undo does not delete package
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
: 240066 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-21 12:30 UTC by ssazonov
Modified: 2016-07-07 07:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
01_New_Project (64.93 KB, image/png)
2013-08-21 12:30 UTC, ssazonov
Details
02_Introduce_Local_Extension (35.39 KB, image/png)
2013-08-21 12:31 UTC, ssazonov
Details
03_Created_Class (84.72 KB, image/png)
2013-08-21 12:31 UTC, ssazonov
Details
04_Package_Remains (75.08 KB, image/png)
2013-08-21 12:32 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2013-08-21 12:30:02 UTC
1. Create new java project with simple ClassA:

public class ClassA {
}

2. Right click ClassA in editor > Refactor > Introduce > Local extension...

3. Enter new package and perform refactor - new class is created

4. Select Project node and press Undo

>> class is deleted, but empty package still remains in project (more ando does not work)

Product Version: NetBeans IDE Dev (Build 201308202300)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 ssazonov 2013-08-21 12:30:19 UTC
Created attachment 138997 [details]
01_New_Project
Comment 2 ssazonov 2013-08-21 12:31:38 UTC
Created attachment 138998 [details]
02_Introduce_Local_Extension
Comment 3 ssazonov 2013-08-21 12:31:54 UTC
Created attachment 138999 [details]
03_Created_Class
Comment 4 ssazonov 2013-08-21 12:32:07 UTC
Created attachment 139000 [details]
04_Package_Remains
Comment 5 Miloslav Metelka 2013-08-26 08:47:48 UTC
Reproduced. Reassigning to java/refactoring for further evaluation.
Comment 6 Ralph Ruijs 2014-01-08 01:07:27 UTC
*** Bug 240066 has been marked as a duplicate of this bug. ***
Comment 7 Martin Balin 2016-07-07 07:19:14 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