1class A extends X.Y { 2 3 void foo() { 4 X.Y xy = null; 5 xy.bar(); 6 } 7} 8 9class X { 10 static class Y { 11 void bar() {} 12 } 13} 14