Project: JDT
Bug 40352 extract method: IllegalArgumentException
Reported: 2003-07-17 09:15:32 | Status: resolved fixed

20030716 type space as the new method name in the extract method dialog the following is logged java.lang.IllegalArgumentException at java.lang.Throwable.<init>(Throwable.java) at org.eclipse.jdt.core.dom.SimpleName.setIdentifier (SimpleName.java:125) at org.eclipse.jdt.core.dom.AST.newSimpleName(AST.java) at org.eclipse.jdt.internal.corext.refactoring.code.ExtractMethodRefactoring.create NewMethod(ExtractMethodRefactoring.java:597) at org.eclipse.jdt.internal.corext.refactoring.code.ExtractMethodRefactoring.getSig nature(ExtractMethodRefactoring.java:411) at org.eclipse.jdt.internal.ui.refactoring.code.ExtractMethodInputPage.updatePrevie w(ExtractMethodInputPage.java:227) at org.eclipse.jdt.internal.ui.refactoring.code.ExtractMethodInputPage.textModified (ExtractMethodInputPage.java:257) at org.eclipse.jdt.internal.ui.refactoring.code.ExtractMethodInputPage.access$6 (ExtractMethodInputPage.java:255) at org.eclipse.jdt.internal.ui.refactoring.code.ExtractMethodInputPage$5.modifyText (ExtractMethodInputPage.java:193) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java) at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:1825) at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:3025) at org.eclipse.swt.widgets.Control.windowProc(Control.java) at org.eclipse.swt.widgets.Display.windowProc(Display.java) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java) at org.eclipse.swt.widgets.Text.callWindowProc(Text.java) at org.eclipse.swt.widgets.Control.windowProc(Control.java) at org.eclipse.swt.widgets.Display.windowProc(Display.java) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java) at org.eclipse.jface.window.Window.runEventLoop(Unknown Source) at org.eclipse.jface.window.Window.open(Unknown Source) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate (RefactoringStarter.java:55) at org.eclipse.jdt.ui.actions.ExtractMethodAction.run (ExtractMethodAction.java:70) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun (SelectionDispatchAction.java:196) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run (SelectionDispatchAction.java:172) at org.eclipse.jface.action.Action.runWithEvent(Unknown Source) at org.eclipse.ui.internal.commands.old.ActionHandler.execute(Unknown Source) at org.eclipse.ui.internal.commands.old.ContextAndHandlerManager.pressed (Unknown Source) at org.eclipse.ui.internal.commands.old.ContextAndHandlerManager.access$1(Unknown Source) at org.eclipse.ui.internal.commands.old.ContextAndHandlerManager$7.widgetSelected (Unknown Source) at org.eclipse.ui.internal.AcceleratorMenu$2.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java) at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source) at org.eclipse.ui.internal.Workbench.run(Unknown Source) at org.eclipse.core.internal.boot.InternalBootLoader.run(Unknown Source) at org.eclipse.core.boot.BootLoader.run(Unknown Source) at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207) at java.lang.reflect.Method.invoke(Method.java:271) at org.eclipse.core.launcher.Main.basicRun(Unknown Source) at org.eclipse.core.launcher.Main.run(Unknown Source) at org.eclipse.core.launcher.Main.main(Unknown Source)

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