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 225039

Summary: Redo Change Pacakge Name - Package Declaration Not Updated in Form
Product: java Reporter: MackSix
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: REOPENED ---    
Severity: normal CC: MackSix
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: project for reproduction of bug

Description MackSix 2013-01-17 19:32:30 UTC
Created attachment 130336 [details]
project for reproduction of bug

1. Import attached project in zip and make sure compile on save is active.
2. Change name of javaapplication23 to javaapplication24.
3. Change name of newpackage23 to newpackage24.
4. Click Undo twice to change names on both packages.
5. Click redo twice to change back the names on both packages.
6. The package declaration in form NewJFrame.java is not changed back to javaapplication23.

Expected, the package declaration is changed back to javaapplication23.

Product Version: NetBeans IDE Dev (Build 201301170001)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Martin Balin 2015-09-17 11:15:40 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.
Comment 2 MackSix 2015-09-17 13:41:20 UTC
This is still valid.

Note in steps #2 you are changing the package name, not the project name. 

Product Version: NetBeans IDE Dev (Build 201509170002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 3 Martin Balin 2016-07-07 07:17:20 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
Comment 4 MackSix 2016-07-19 06:52:45 UTC
Still Valid in:

Product Version: NetBeans IDE Dev (Build 201607140002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)