Project: JDT
Bug 292505 Combined "Delete" on mixed selection package/folders does not delete all resources
Reported: 2009-10-16 05:01:12 | Status: verified fixed

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9 Build Identifier: M20090917-0800 When deleting a mixed selection, not all resources are actually deleted. Reproducible: Always Steps to Reproduce: 1. Create a Java project 2. Inside the source folder, create a package "fefe" (You'll have a folder "project/src/fefe" on disk now) 3. Create a normal folder "project/fefe" at the same level as the source folder 4. In the package explorer, select both the fefe folder and the fefe package 5. Right-click delete the selection. You'll be asked if you are sure that you want to delete 2 resources. Hit "Yes" 6. Notice that only the fefe package was deleted. The fefe folder still exists. Expected: Both the fefe package and fefe folder should be deleted.

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ccp/DeleteTest.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/JavaDeleteProcessor.java