GCJ compiles fine, but I get cast exception
Robert Schuster
theBohemian@gmx.net
Fri Aug 1 16:20:00 GMT 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/java/attachments/20080801/f3463aaf/attachment.sig>
More information about the Java
mailing list