Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317557 - AbstractMethodError when painting 2D children
Summary: AbstractMethodError when painting 2D children
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Gef3d (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jens Von Pilgrim CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-22 05:46 EDT by Jens Von Pilgrim CLA
Modified: 2021-03-23 18:16 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (2.92 KB, application/octet-stream)
2010-06-22 05:56 EDT, Jens Von Pilgrim CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Von Pilgrim CLA 2010-06-22 05:46:39 EDT
Under some circumstances, an AbstractMethodError may occur when painting 2D children:

java.lang.AbstractMethodError
	at org.eclipse.draw2d.Figure.hasFocus(Figure.java:893)
	at org.eclipse.draw2d.Clickable.paintBorder(Clickable.java:296)
...
	at org.eclipse.draw3d.Figure3DHelper.doPaintChildren2D(Figure3DHelper.java:395)
...

that is, at: dispatcher.getFocusOwner() causes this error. I do not understand that error, since dispatcher is an instance of EventDispatcher3D, which implements this method.

Reproduce that error:
- open Ecore diagram in 3D
- create two classes, make one class (rectangle) pretty small (compartments are barley visible)
- create an attribute in the larger class
- drag and drop newly created attribute to smaller class

Seems as if the error occurs when scroll bars should be rendered.
Comment 1 Jens Von Pilgrim CLA 2010-06-22 05:56:55 EDT
Not fixed, but moderated: catch errors in Figure3DHelper. 
According to the JDK documentation, an AbstractMethodError
"is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled."
Cleaning the project didn't helped and the compiler did not caught the error. 

I assume the error may be gone with GEF 3.6, as this method is one of the problematic package visible methods (#315887).
Comment 2 Jens Von Pilgrim CLA 2010-06-22 05:56:58 EDT
Created attachment 172402 [details]
mylyn/context/zip