Peter Werno wrote:
> To make my life a little easier, I have classes initialized immediately
> after they have been loaded.

This is contrary to the JVM spec, which specifies exactly when
class initialization must happen (can't remember which section).
Probably this is causing the problems you're seeing.

In short, you must initialize a class at its first "active use",
defined as referencing a static field, invoking a static method,
or instantiating an instance.

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com


*
Confidentiality Notice: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential and 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all copies of 
the original message.
*



_______________________________________________
Classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to