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 225041 - AssertionError at org.openide.loaders.FolderList.getChildrenList
Summary: AssertionError at org.openide.loaders.FolderList.getChildrenList
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-17 19:56 UTC by MackSix
Modified: 2015-02-04 03:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 197706


Attachments
stacktrace (4.86 KB, text/plain)
2013-01-17 19:56 UTC, MackSix
Details
stacktrace (4.86 KB, text/plain)
2013-01-17 20:04 UTC, MackSix
Details
project for reproduction of bug (18.28 KB, application/zip)
2013-01-17 20:18 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-01-17 19:56:12 UTC
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)
Comment 1 MackSix 2013-01-17 19:56:14 UTC
Created attachment 130338 [details]
stacktrace
Comment 2 MackSix 2013-01-17 20:04:36 UTC
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.
Comment 3 MackSix 2013-01-17 20:18:01 UTC
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)
Comment 4 MackSix 2013-01-17 20:18:25 UTC
Created attachment 130340 [details]
project for reproduction of bug
Comment 5 MackSix 2013-01-17 20:26:16 UTC
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
Comment 6 MackSix 2013-01-17 20:35:02 UTC
This happens sometimes with v7.2.1 too, so it's not regression.
Comment 7 Quality Engineering 2015-02-04 03:40:45 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.