This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCJ compiles fine, but I get cast exception


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]