Bug 72282 - Overriding methods, UI error
Summary: Overriding methods, UI error
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-08-19 11:21 EDT by Matt Rossner CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Rossner CLA 2004-08-19 11:21:27 EDT
I am using Eclipse 3.0 build 200406192000

In the Java editor when a method is overridden, then is a little green arrow 
that appears in the left margin, if you click it, it brings in the code from 
the parent class. But if the parent class code is unavailable, like from 
Object.class, I get errors. If I override toString() and click the green arrow 
I get this error dialog: "Unable to create part", and this entry is created in 
the .log file.


!ENTRY org.eclipse.core.runtime 4 2 Aug 19, 2004 11:11:14.299
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.runtime".
!STACK 0
java.lang.ClassCastException: org.eclipse.ui.internal.EditorPane$1
$ErrorEditorPart
	at 
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.activeJavaEditorChanged
(ASTProvider.java:218)
	at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.access$0
(ASTProvider.java:213)
	at 
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$ActivationListener.partActiva
ted(ASTProvider.java:70)
	at org.eclipse.ui.internal.PartListenerList2$1.run
(PartListenerList2.java:45)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.ui.internal.PartListenerList2.firePartActivated
(PartListenerList2.java:43)
	at org.eclipse.ui.internal.WWinPartService$1.partActivated
(WWinPartService.java:30)
	at org.eclipse.ui.internal.PartListenerList2$1.run
(PartListenerList2.java:45)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:758)
	at org.eclipse.ui.internal.PartListenerList2.firePartActivated
(PartListenerList2.java:43)
	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated
(WorkbenchPage.java:1361)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart
(WorkbenchPage.java:2684)
	at org.eclipse.ui.internal.WorkbenchPage.requestActivation
(WorkbenchPage.java:2361)
	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:304)
	at org.eclipse.ui.internal.EditorPane.requestActivation
(EditorPane.java:127)
	at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:325)
	at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java:154)
	at org.eclipse.ui.internal.PartStack.presentationSelectionChanged
(PartStack.java:677)
	at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:660)
	at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:94)
	at 
org.eclipse.ui.internal.presentations.DefaultPartPresentation.setSelection
(DefaultPartPresentation.java:1403)
	at 
org.eclipse.ui.internal.presentations.DefaultPartPresentation$4.handleEvent
(DefaultPartPresentation.java:166)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:613)
	at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2951)
	at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1861)
	at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:289)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2732)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2398)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1375)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1346)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:252)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:272)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:128)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:186)
	at org.eclipse.core.launcher.Main.run(Main.java:647)
	at org.eclipse.core.launcher.Main.main(Main.java:631)
Comment 1 Dani Megert CLA 2004-08-20 06:42:32 EDT
The CCE is covered by bug 70838 but this is "only" a followup of some other error.
Is there something else in .log or in the console?

How did you install Eclipse? Maybe you run into bug 70853.

Try installing the full Eclipse SDK (not Platform SDK).

I'm marking this bug as REMIND. Will reopen if we have more info about the real
cause for the CCE.
Comment 2 Dani Megert CLA 2007-06-22 09:59:12 EDT
Get rid of deprecated state.
Comment 3 Dani Megert CLA 2007-06-22 10:04:30 EDT
.