This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [RFA/JDWP] ReferenceTypeCommandSet.java
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