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.
Build: NetBeans IDE Dev (Build 201301170001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21 OS: Windows 7 User Comments: MackSix: 1. Renamed 2 packages. 2. Renamed project w/renaming of system drive folder. 3. Renamed 2 pacakges again. 3. Clicked Undo and first package was not renamed, but a new empty package was created with the expected name. 4. Clicked Undo again and the same thing happened with second package as in step 3, except this AssertionError was thrown. Will try to reproduce. Stacktrace: java.lang.AssertionError at org.openide.loaders.FolderList.getChildrenList(FolderList.java:280) at org.openide.loaders.FolderList.getChildren(FolderList.java:259) at org.openide.loaders.DataFolder.getChildren(DataFolder.java:282) at org.netbeans.modules.refactoring.java.plugins.PackageRename$PackageRenamePlugin$RenameNonRecursiveFolder.setName(PackageRename.java:267) at org.netbeans.modules.refactoring.java.plugins.PackageRename$PackageRenamePlugin$RenameNonRecursiveFolder$1.run(PackageRename.java:201) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
Created attachment 130338 [details] stacktrace
Created attachment 130339 [details] stacktrace It has happened 2 out of 3 times now. I think it only happens when the package view is expanded and the files are showing. I will keep testing and find the exact steps to repeat it.
It seems to be random, but here is exactly what I did each time it happened. 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. Change name of package from JavaApplication23 to JavaApplication24 and rename project folder along with it. 5. Change name of javaapplication24 to javaapplication25. 6. Change name of newpackage24 to newpackage25. 7. Click Undo and an empty newpackage24 package was created and newpackage25 package still existed with no change. 5. Clicked Undo again and an empty javaapplication24 package was created and javaapplication25 package still existed with no change. Also this AssertionError was thrown. Expected: The package names should have been changed and empty packages should not have been created. No AssertionError should have been thrown. 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)
Created attachment 130340 [details] project for reproduction of bug
Also note that this bug occurs too when these steps are done. This bug happens every time leaving an empty JavaApplication23/src and packages on the system drive. http://netbeans.org/bugzilla/show_bug.cgi?id=224780
This happens sometimes with v7.2.1 too, so it's not regression.
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.