Project: JDT
Bug 32626 [refactor] extract interface causing exception
Reported: 2003-02-24 07:12:58 | Status: resolved fixed

Got the following exception extracting an interface using RC1: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:307) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:246) at org.eclipse.jdt.internal.ui.refactoring.RefactoringWizardDialog2.run (RefactoringWizardDialog2.java:247) at org.eclipse.jdt.internal.ui.refactoring.PerformRefactoringUtil.performRefactorin g(PerformRefactoringUtil.java:43) at org.eclipse.jdt.internal.ui.refactoring.RefactoringWizard.performFinish (RefactoringWizard.java:357) at org.eclipse.jdt.internal.ui.refactoring.UserInputWizardPage.performFinish (UserInputWizardPage.java:113) at org.eclipse.jdt.internal.ui.refactoring.ExtractInterfaceInputPage.performFinish (ExtractInterfaceInputPage.java:207) at org.eclipse.jdt.internal.ui.refactoring.RefactoringWizard.performFinish (RefactoringWizard.java:420) at org.eclipse.jdt.internal.ui.refactoring.RefactoringWizardDialog2.okPressed (RefactoringWizardDialog2.java:364) at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:250) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:417) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:87) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1775) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1483) at org.eclipse.jface.window.Window.runEventLoop(Window.java:577) at org.eclipse.jface.window.Window.open(Window.java:557) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate (RefactoringStarter.java:60) at org.eclipse.jdt.ui.actions.ExtractInterfaceAction.startRefactoring (ExtractInterfaceAction.java:158) at org.eclipse.jdt.ui.actions.ExtractInterfaceAction.run (ExtractInterfaceAction.java:94) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun (SelectionDispatchAction.java:193) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run (SelectionDispatchAction.java:169) at org.eclipse.jface.action.Action.runWithEvent(Action.java:841) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:456) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:403) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:397) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:72) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1775) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1483) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1271) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1254) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539) Caused by: org.eclipse.jdt.internal.corext.Assert$AssertionFailedException: null argument;Variable typecommentnot defined at org.eclipse.jdt.internal.corext.Assert.isNotNull(Assert.java:99) at org.eclipse.jdt.internal.corext.template.java.CodeTemplateContext.evaluate (CodeTemplateContext.java:46) at org.eclipse.jdt.internal.corext.codemanipulation.StubUtility.getCompilationUnitC ontent(StubUtility.java:300) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceRefactorin g.createExtractedInterfaceCUSource(ExtractInterfaceRefactoring.java:443) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceRefactorin g.createExtractedInterface(ExtractInterfaceRefactoring.java:366) at org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceRefactorin g.createChange(ExtractInterfaceRefactoring.java:259) at org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation.run (CreateChangeOperation.java:98) at org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation.run (PerformChangeOperation.java:138) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) ... 42 more

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test1/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test10/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test11/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test12/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test13/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test14/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test15/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test16/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test17/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test18/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test19/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test2/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test20/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test21/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test22/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test23/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test24/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test25/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test26/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test27/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test28/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test29/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test3/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test30/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test31/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test32/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test33/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test34/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test35/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test36/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test37/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test38/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test39/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test4/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test40/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test41/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test42/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test43/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test44/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test45/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test46/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test47/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test48/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test49/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test5/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test50/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test51/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test52/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test53/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test54/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test55/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test56/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test57/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test58/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test59/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test60/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test61/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test62/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test63/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test64/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test65/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test66/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test67/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test68/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test69/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test70/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test71/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test72/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test73/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test74/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test75/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test76/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test77/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test78/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test79/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/test9/out/I.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/testInterface6/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/testInterface6/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/ExtractInterface/testInterface6/out/I.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ExtractInterfaceRefactoring.java