Hi Hanno, On Thu, 2005-12-22 at 16:48 +0100, Mark Wielaard wrote: > > The source compiles but executing gij with the class files breaks. > > I narrowed down the error to a testcase I would say. > > Java file is attached. > > > > # gcj -C DemuxOutputStream.java > > # gij -cp . DemuxOutputStream > > Exception in thread "main" java.lang.IllegalAccessError: DemuxOutputStream: > > DemuxOutputStream$BufferInfo.buffer > > at DemuxOutputStream.main (DemuxOutputStream.java:18)
In this case it really does seem a bug in gcj -C byte code generation. Since this is a static inner class it should create an (package private) accessor method for the private ByteArrayOutputStream buffer field. (jikes does this correctly btw.) A workaround is to just remove the private flag from the buffer field in this case. Cheers, Mark
signature.asc
Description: This is a digitally signed message part
_______________________________________________ kaffe mailing list kaffe@kaffe.org http://kaffe.org/cgi-bin/mailman/listinfo/kaffe