This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: class initialisation



> In particular, it's not clear what the "first active
> use" is: for instance, is calling Class.forName() an active use?

Yes.  See http://www.javasoft.com/docs/books/jls/clarify.html:

Java.lang.Class.forName()

JLS 20.3.8 should state that a call to java.lang.Class.forName("X") causes
the class named "X" to be initialized. 

	--Per Bothner
Cygnus Solutions     bothner@cygnus.com     http://www.cygnus.com/~bothner