class A { public void test() { Object[] b = new Object[] {new Object() { public String toString() { return "A"; } }}; } }