Project: JDT
Bug 222942 [reorg] Delete anonymous class is a no-op
Reported: 2008-03-17 08:12:09 | Status: resolved fixed

I20080312-1200 Given: package test.bar1; public class Test { public void foo() { new Object() { }; } } 1. Select new Object in outline 2. Delete 3. Ok Is: No changes Should: Delete the anonymous class or delete should not be enabled Same in 3.3.2, same if executed from breadcrumb, nothing in the log

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/Delete/testDeleteWithinCu24/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/Delete/testDeleteWithinCu24/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/Delete/testDeleteWithinCu25/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/Delete/testDeleteWithinCu25/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/Delete/testDeleteWithinCu26/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/Delete/testDeleteWithinCu26/out/A.java 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/ASTNodeDeleteUtil.java