classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Re: [RFA/JDWP] ReferenceTypeCommandSet.java


From: Keith Seitz
Subject: [cp-patches] Re: [RFA/JDWP] ReferenceTypeCommandSet.java
Date: Tue, 05 Jul 2005 13:23:58 -0700

On Tue, 2005-07-05 at 16:15 -0400, Bryce McKinlay wrote:
> Class preparation is distinct from initialization. Preparation is 
> effectively linking the class: laying out its fields, initializing class 
> data structures in the VM, etc. Initialization involves actually running 
> Java code to initialize the classes static fields, and any "static" code 
> blocks the class may have. The point at which initialization occurs is 
> strictly defined by the JLS, and its pretty easy to write a program that 
> will behave differently if initializations are not performed in the 
> "right" order.

<warning type="newbie">
So can a class be prepared by a user application and not be initialized?
</warning>

Keith





reply via email to

[Prev in Thread] Current Thread [Next in Thread]