Project: JDT
Bug 196093 [rename] rename packages deletes files if subpackages are available and to rename, too.
Reported: 2007-07-10 20:37:29 | Status: verified fixed

Build ID: M20070212-1330 Steps To Reproduce: 1. Create package a.b.c with Class C1 2. Create package a.b.c.d.e with Class C2 3. Open the refactoring dialog in the package explorer on a.b.c and rename it to a.b.c.d (and check the "rename subpackages"-option. Expected result: Two packages: a.b.c.d with file C1 and a.b.c.d.d.e and file C2 Real result: One package: a.b.c.d.d.e WITH ONLY C2!!

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/RenamePackage/testFail11/in/q/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenamePackage/testFail11/in/q/p1/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenamePackage/testFail2/in/r/p1/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenamePackage/testToEmptyPack/in/r/p1/A.java org.eclipse.jdt.ui.tests.refactoring/resources/RenamePackage/testToEmptyPack/out/fred/A.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/RenamePackageTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringCoreMessages.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/RenamePackageChange.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenameModifications.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/RenamePackageWizard.java