Re: GCJ compiles fine, but I get cast exception
Andrew Haley <[email protected]>
| Newsgroups | gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <[email protected]> |
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 > prefuse.Display.paintComponent(Display.java:795) > > > > 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. Andrew.