Project: JDT
Bug 39871 [refactoring] failed Assertion in MoveInstanceAction enablement
Reported: 2003-07-10 10:09:28 | Status: resolved fixed

200307030800 - no detailed steps, can't reproduce, but multiple occurrences when selecting some text and really quickly selecting some other text in the Java Editor. Error Jul 10, 2003 15:56:00.208 Problems occurred when invoking code from plug- in: "org.eclipse.jface". org.eclipse.jdt.internal.corext.Assert$AssertionFailedException: null argument; at java.lang.Throwable.<init>(Throwable.java) at java.lang.Throwable.<init>(Throwable.java) at org.eclipse.jdt.internal.corext.Assert$AssertionFailedException.<init> (Assert.java:55) at org.eclipse.jdt.internal.corext.Assert.isNotNull(Assert.java:105) at org.eclipse.jdt.internal.corext.Assert.isNotNull(Assert.java:83) at org.eclipse.jdt.internal.corext.refactoring.structure.InstanceMethodMover$Method .getParameters(InstanceMethodMover.java:1137) at org.eclipse.jdt.internal.corext.refactoring.structure.InstanceMethodMover$Method .addPossibleParameterNewReceivers(InstanceMethodMover.java:1334) at org.eclipse.jdt.internal.corext.refactoring.structure.InstanceMethodMover$Method .findPossibleNewReceivers(InstanceMethodMover.java:1321) at org.eclipse.jdt.internal.corext.refactoring.structure.InstanceMethodMover$Method .getPossibleNewReceivers(InstanceMethodMover.java:1314) at org.eclipse.jdt.internal.corext.refactoring.structure.InstanceMethodMover$Method .checkCanBeMoved(InstanceMethodMover.java:1174) at org.eclipse.jdt.internal.corext.refactoring.structure.InstanceMethodMover.checkI nitialState(InstanceMethodMover.java:1850) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveInstanceMethodRefactor ing.checkActivation(MoveInstanceMethodRefactoring.java:94) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveInstanceMethodRefactor ing.isAvailable(MoveInstanceMethodRefactoring.java:65) at org.eclipse.jdt.internal.ui.refactoring.actions.MoveInstanceMethodAction.canEnab le(MoveInstanceMethodAction.java:88) at org.eclipse.jdt.internal.ui.refactoring.actions.MoveInstanceMethodAction.selecti onChanged(MoveInstanceMethodAction.java:71) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged (SelectionDispatchAction.java:184) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java:179) at org.eclipse.jdt.ui.actions.MoveAction.selectionChanged(MoveAction.java:100) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java) at org.eclipse.core.runtime.Platform.run(Platform.java) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157) at org.eclipse.jface.viewers.StructuredViewer.updateSelection (StructuredViewer.java:1282) at org.eclipse.jface.viewers.StructuredViewer.setSelection (StructuredViewer.java:1012) at org.eclipse.jdt.internal.ui.javaeditor.JavaOutlinePage.select (JavaOutlinePage.java:1057) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.synchronizeOutlinePage (JavaEditor.java:1365) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$EditorSelectionChangedListener .selectionChanged(JavaEditor.java:250) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$EditorSelectionChangedListener .selectionChanged(JavaEditor.java:242) at org.eclipse.jface.text.TextViewer.firePostSelectionChanged (TextViewer.java:2075) at org.eclipse.jface.text.TextViewer.firePostSelectionChanged (TextViewer.java:2028) at org.eclipse.jface.text.TextViewer$4.run(TextViewer.java:2007) at org.eclipse.swt.widgets.Display.runTimer(Display.java:2083) at org.eclipse.swt.widgets.Display.messageProc(Display.java:1633) 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.ui.internal.Workbench.runEventLoop(Workbench.java:1383) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1366) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.AccessibleObject.invokeImpl(Native Method) 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(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583)

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/MoveInstanceMethodTests.java