Did a quick test on 1.6.0 update 2 and the static block does get called. I guess this is a bug.
On Feb 20, 2008 4:47 PM, Dave <[EMAIL PROTECTED]> wrote:
> class Foo {
>
> private static int;
>
> static {
> a = 100;
> }
>
> Foo() {
>
> }
>
> }
>
> Class.forName("package.Foo").newInstance();
>
> The static init block of Foo is not called.
>
> I am using Java 1.5 update14. It is a bug?
>
> Thanks
> Dave
>
>
>
>
> ---------------------------------
> Never miss a thing. Make Yahoo your homepage.
>
