Project: JDT
Bug 198700 [Extract Class] Can press 'ok' although error status
Reported: 2007-08-02 11:58:06 | Status: resolved fixed

I20070731-0800 Given: package pack; public class E { int test; } package pack; public class EParameter {} 1. Select E 2. Extract Class... Is: Dialog with error status 'EParameter' already exists 3. Press OK anyway 4. Press Continue Is: org.eclipse.core.runtime.AssertionFailedException: assertion failed: at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109) at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95) at org.eclipse.jdt.internal.corext.refactoring.structure.ParameterObjectFactory.createTopLevelParameterObject(ParameterObjectFactory.java:598) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractClassRefactoring.createParameterObject(ExtractClassRefactoring.java:435) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractClassRefactoring.createChange(ExtractClassRefactoring.java:357) at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:130) at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:209) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797) at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

Files changed in fix:
org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractClassWizard.java