Project: JDT
Bug 79905 Move inner to top failed for enums
Reported: 2004-12-01 13:20:18 | Status: resolved fixed

public class A { enum E { } } - try moving E to top java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(Unknown Source) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Unknown Source) at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(Unknown Source) at org.eclipse.ui.internal.progress.ProgressManager$3.run(Unknown Source) at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source) at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(Unknown Source) at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(Unknown Source) at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.checkInitialConditions(Unknown Source) at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.access$0(Unknown Source) at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(Unknown Source) at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source) at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(Unknown Source) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(Unknown Source) at org.eclipse.jdt.ui.actions.ConvertNestedToTopAction.startRefactoring(Unknown Source) at org.eclipse.jdt.ui.actions.ConvertNestedToTopAction.run(Unknown Source) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(Unknown Source) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Unknown Source) at org.eclipse.jface.action.Action.runWithEvent(Unknown Source) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unknown Source) at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Source) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.jdt.internal.ui.actions.QuickMenuAction.run(Unknown Source) at org.eclipse.jface.action.Action.runWithEvent(Unknown Source) at org.eclipse.ui.commands.ActionHandler.execute(Unknown Source) at org.eclipse.ui.internal.commands.Command.execute(Unknown Source) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(Unknown Source) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Unknown Source) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(Unknown Source) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(Unknown Source) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(Unknown Source) at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.filterEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Control.traverse(Unknown Source) at org.eclipse.swt.widgets.Control.translateMnemonic(Unknown Source) at org.eclipse.swt.widgets.Composite.translateMnemonic(Unknown Source) at org.eclipse.swt.widgets.Control.translateMnemonic(Unknown Source) at org.eclipse.swt.widgets.Display.translateMnemonic(Unknown Source) at org.eclipse.swt.widgets.Display.filterMessage(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source) at org.eclipse.ui.internal.Workbench.runUI(Unknown Source) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:684) at org.eclipse.core.launcher.Main.main(Main.java:668) Caused by: org.eclipse.jdt.internal.corext.Assert$AssertionFailedException: null argument; at org.eclipse.jdt.internal.corext.Assert.isNotNull(Unknown Source) at org.eclipse.jdt.internal.corext.Assert.isNotNull(Unknown Source) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveInnerToTopRefactoring.findTypeDeclaration(Unknown Source) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveInnerToTopRefactoring.isInstanceFieldCreationMandatory(Unknown Source) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveInnerToTopRefactoring.checkInitialConditions(Unknown Source) at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(Unknown Source) at org.eclipse.core.internal.resources.Workspace.run(Unknown Source) at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Unknown Source) Root exception: org.eclipse.jdt.internal.corext.Assert$AssertionFailedException: null argument; at org.eclipse.jdt.internal.corext.Assert.isNotNull(Unknown Source) at org.eclipse.jdt.internal.corext.Assert.isNotNull(Unknown Source) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveInnerToTopRefactoring.findTypeDeclaration(Unknown Source) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveInnerToTopRefactoring.isInstanceFieldCreationMandatory(Unknown Source) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveInnerToTopRefactoring.checkInitialConditions(Unknown Source) at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(Unknown Source) at org.eclipse.core.internal.resources.Workspace.run(Unknown Source) at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(Unknown Source) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Unknown Source)

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java