// Test call to static method on object, where method can be overridden. // Relevant PR: PR763 // Expected result: PASS class a8 { public static void main(String[] args) { a8 y = new a8a(); y.z.foo(); } static void foo() { System.out.println(0); } a8 z = this; } class a8a extends a8 { static void foo() { System.out.println(1); } }