From: Ciamak Abkai <cabkai@rumms.uni-mannheim.de>
To: java@gcc.gnu.org
Subject: GCJ compiles fine, but I get cast exception
Date: Fri, 01 Aug 2008 09:11:00 -0000 [thread overview]
Message-ID: <4892D35C.2000800@rumms.uni-mannheim.de> (raw)
Hi all,
I try to run prefuse applying gcj. There is a problem with the
following cast :
Graphics2D g2D = (Graphics2D)g;
gcj-info :
Using built-in specs.
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgcj.spec
rename spec lib to liborig
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib
--disable-checking --disable-werror --enable-secureplt --enable-multilib
--enable-libmudflap --disable-libssp --enable-java-awt=gtk
--enable-languages=c,c++,java,treelang,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
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 ?
Thank you
Ciamak
next reply other threads:[~2008-08-01 9:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-01 9:11 Ciamak Abkai [this message]
2008-08-01 9:27 ` Andrew Haley
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=4892D35C.2000800@rumms.uni-mannheim.de \
--to=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).