GCJ compiles fine, but I get cast exception
Fri Aug 1 09:27:00 GMT 2008
Ciamak Abkai wrote:
> I try to run prefuse applying gcj. There is a problem with the
> following cast :
> Graphics2D g2D = (Graphics2D)g;
> Exception during event dispatch:
> Exception in thread "prefuse_ActivityManager"
> java.lang.ClassCastException: gnu.java.awt.peer.gtk.GdkGraphics cannot
> be cast to java.awt.Graphics2D at
> Do you have an idea how to solve the Problem ?
GdkGraphics doesn't extend Graphics2D. Do you have any reason to
believe that it should? It extends Graphics.
More information about the Java