/** * @test /nodynamiccopyright/ * @bug 7094099 * @summary -Xlint:rawtypes * @compile/fail/ref=T7090499.out -XDrawDiagnostics -Xlint:rawtypes T7090499.java */ class T7090499 { static class B {} class A { class X {} class Z {} } T7090499 t = new T7090499() { //raw warning (2) A.X x1;//raw warning A.Z z1;//raw warning T7090499.B b1;//ok T7090499.B b2;//raw warning A.X x2;//ok A.Z z2;//ok A.Z> z3;//raw warning (2) void test(Object arg1, B arg2) {//raw warning boolean b = arg1 instanceof A;//ok Object a = (A)arg1;//ok A a2 = new A() {};//raw warning (2) a2.new Z() {};//raw warning } }; }