kaffe javac question: forward reference supported?

Yong Chen ychen at allegronetworks.com
Fri Apr 13 11:16:12 PDT 2001



Hi Edouard,

Thanks a lot for the reply. I tried both 1.4F and 1.4F-egp1 but still having
the same problem.

Sorry I can't send you a sample code since it's a big project with lots of
files. I tried to come up with s simpler example but kjc WORKS with my
simple example code.

I did notice that with my big project (lots of files), kjc crashes when one
(or several ) of the files has "while(true)" or "break" code, if I change
"while(true)" to "while(flag_variable)" and set flag_variable to true, then
kjc doesn't throw exceptions.


thanks
Yong Chen


-----Original Message-----
From: Edouard G. Parmelan [mailto:egp at free.fr]
Sent: Wednesday, April 11, 2001 12:39 AM
To: Yong Chen
Cc: 'kaffe at rufus.w3.org'
Subject: Re: kaffe javac question: forward reference supported?


Yong Chen wrote:

> Hi,
> 
> thank you very much for the reply, it did help me to some extent. But
> unfortunately I'm still facing a problem which is related to my previous
> question. I tried to compile 2 classes (each references the other) at same
> time (like: kjc A.java B.java) but got exception (see below). This happens
> when these 2 classes are in same package, also happens when these 2
classes
> are in different packages.
> 
> Any help is appreciated.

Could you send me result of

$ kjc -version 

> java.lang.ClassCastException: can't cast `at/dms/kjc/CMethodContext' to
> `at/dms/kjc/CBodyContext'

And a small part of your both sources A.java and B.java that throw this
internal error.

Note that kjc release contains in Kaffe-1.0.6 is broken (kjc-1.4F).
You could use kjc.jar (kjc-1.4F-egp1) from latest CVS Tree or from
http://egp.free.fr/kaffe.  There are snapshot of KOPI CVS Tree with
minor fixes.

Note also that I'm currently testing alpha release of kjc-1.5 from KOPI
CVS Tree with Thomas Graf, upstream author.
-- 
Edouard G. Parmelan
http://egp.free.fr


More information about the kaffe mailing list