From: Andrew Haley <aph@redhat.com>
To: Ciamak Abkai <cabkai@rumms.uni-mannheim.de>
Cc: java@gcc.gnu.org
Subject: Re: GCJ compiles fine, but I get cast exception
Date: Fri, 01 Aug 2008 09:27:00 -0000 [thread overview]
Message-ID: <4892D6D6.3040908@redhat.com> (raw)
In-Reply-To: <4892D35C.2000800@rumms.uni-mannheim.de>
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.
next prev parent reply other threads:[~2008-08-01 9:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-01 9:11 Ciamak Abkai
2008-08-01 9:27 ` Andrew Haley [this message]
2008-08-01 16:20 ` Robert Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4892D6D6.3040908@redhat.com \
--to=aph@redhat.com \
--cc=cabkai@rumms.uni-mannheim.de \
--cc=java@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).