Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324951

Summary: NoSuchMethodError thrown when invoking Ctrl+Alt+H on I20100909-2018
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: blocker    
Priority: P3    
Version: 1.0   
Target Milestone: 4.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Remy Suen CLA 2010-09-10 07:46:57 EDT
I20100909-2018

The 'Call Hierarchy' view itself will be populated despite the error and seems to work but if you click on the originating method in the tree the error will be thrown again.

java.lang.NoSuchMethodError: org.eclipse.jdt.core.ISourceReference.getNameRange()Lorg/eclipse/jdt/core/ISourceRange;
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.setSelection(JavaEditor.java:2297)
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.setSelection(JavaEditor.java:2353)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.revealInEditor(EditorUtility.java:247)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewPart.revealElementInEditor(CallHierarchyViewPart.java:794)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewPart.methodSelectionChanged(CallHierarchyViewPart.java:755)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewPart.selectionChanged(CallHierarchyViewPart.java:744)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2162)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1699)
at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1139)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewer.setMethodWrappers(CallHierarchyViewer.java:69)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewPart.updateView(CallHierarchyViewPart.java:1077)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewPart.refresh(CallHierarchyViewPart.java:726)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewPart.setInputElements(CallHierarchyViewPart.java:293)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyUI.openView(CallHierarchyUI.java:229)
at org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyUI.openSelectionDialog(CallHierarchyUI.java:217)
at org.eclipse.jdt.internal.ui.callhierarchy.OpenCallHierarchyAction.run(OpenCallHierarchyAction.java:117)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:278)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:121)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:56)at org.eclipse.equinox.launcher.Main.run(Main.java:1409)
Comment 1 Remy Suen CLA 2010-09-10 08:15:00 EDT
Clicking stuff in the 'Outline' view or using Ctrl+O will prompt the error dialog despite the fact that it shifts the editor. This build is pretty much unusable.
Comment 2 Remy Suen CLA 2010-09-10 11:21:58 EDT
I20100910-1033 doesn't have this problem anymore.
Comment 3 Paul Webster CLA 2010-09-15 07:58:05 EDT
In I20100914-1023
PW