Re: GCJ compiles fine, but I get cast exception

Robert Schuster <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Hi,

Andrew Haley schrieb:
>>    Graphics2D g2D = (Graphics2D)g;
> GdkGraphics doesn't extend Graphics2D.  Do you have any reason to
> believe that it should?  It extends Graphics.
Typical implementation issue. On the other class library this is
possible always. Once upon a time I found this written down somewhere.

@Ciamak: You need a newer GCJ. In more recent versions the cast will work.

Regards
Robert
signature.asc (application/pgp-signature, 260 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkiTOAcACgkQG9cfwmwwEtqByACffDGmW7nxPS6Fz+dyIzlP8F9q
/4IAn1hao42tPcwtKOJIAqFMj56r+VGc
=+9+2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.