On Tue, Oct 30, 2001 at 10:52:36PM +0200, Vesa Salento wrote:
< > 
> > I use the same setup, except I use jikes 1.10 and Kaffe from CVS, so it
> > should work if anything does[*]. I really recommend using Kaffe from
> > CVS, they are long overdue on a 1.07 release. Jikes <= 1.12 has some
> > issues with private constructors in internal classes, but those are
> > completely redundant anyways (I removed them from Fred since 1.10 is
> > jikes version in potato).
> 
> Well isn't that just the problem here?
> 
> MessageType is a private inner class in MessageHandler with a private
> constructor.

Yes, that would be expected to cause problems. I changed it.

> > [*] Nothing does.
> 
> Well I can get it work with JDK1.3 so it's not a big problem, but I'd like
> to know what is going wrong. I checked the Jikes generated bytecode and it
> seems invalid. Is the distinction here that you use Kaffe classfiles when
> I use those that come with JDK1.3.1_01.

Since it was my understanding that this was fixed in the latest builds
of jikes, I haven't spent to much time trying to analyze it. As it is
easy and costless to avoid using private constructors in such a manner
we might as well save everybody using older jikes versions (which seem
to work well in other regards) a lot of bother.

I have been meaning to put together a list of things that we want to
avoid doing in the code to keep it working with various jvms and
compilers (private constructors, anonymous classes, etc), and various
symptoms of errors that may be caused by the JVM (these errors, and
of course the IBM JIT Heisenbug). So much for write once run anywhere...

<>

-- 

Oskar Sandberg
oskar at freenetproject.org

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to