Static initializer blocks are not executed when a class is loaded.
SimpleCompiler compiler = new SimpleCompiler();
compiler.cook(new StringReader("public class
Test{static{System.out.println(\"Hi\");}}"));
Class testClass = compiler.getClassLoader().loadClass("Test");
There are no errors but no console output either.
Is there something I can do to make this work?
regards
Varghese C V
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email