// Test static initializer order. // Relevant PR: PR285 // Expected result: PASS class z8c { static Object o = new z8b(); } class z8 implements z8a { public void foo() { if (z8c.o == null) System.out.println("error"); } public static void main(String[] args) { System.out.println("done"); } } interface z8a { void foo(); } class z8b { static { bar(new z8()); } static void bar(z8a a) { a.foo(); } }