Ondrej Lhotak wrote:
To be precise: According to the JVM spec. the class initiliazer *must* be call *the* first time a class is used (instance creation, initialization of subclass, static method/field access,...). See JVM spec 2.17.4 and 5.5 for details. Of course, this is hell for static analyses. :-)Another difficulty is that class initiliazer methods can be called at any time the first time a class is used, so they are treated as possible entry points...