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