> Hey, guys, this guy is trying to make a VM and has a question. I vaguely
> remember us running into something like this before with Japhar, and I am
> not sure how it was solved ... ?
Hmm, I had some problems when I started using claspath too. In my case in
wasn't with the constructor, but with things like File IO. For example
some Classpath classes need to read in locale files from the file system,
and this is triggered from class initializers (before my VM has even
started anything that looks like a thread). Similarly when I try to run
the kjc compiler (it's a free Java compiler written as part of the kopi
suite) I have problems with code that gets called from initializers that
wants to acquire locks on objects. At this stage there is no thread state
yet because I haven't started the main thread. It's tricky to handle
these.
> >From: Vojta Filip <[EMAIL PROTECTED]>
> >
> >So with it I have else one problem - when String is loaded <clinit> is
> >called. And in <clinit> of String is used Hashtable. And Hashtable has in
> ><clinit> manipulations with String. But String is not comletly initialized
> >(<clinit> is not done)...
> >
>
> Hmm. Reading the appropriate initialization procedure (JVM Spec sections
> 2.16.4 and 2.16.5 at
> http://java.sun.com/docs/books/vmspec/html/Concepts.doc.html#19075), your
> statement is correct.
...
---------------------------------------------------
I saw Be's face, now I'm a Be-liever
http://www.be.com/