mcimadamore@122: /* mcimadamore@122: * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@122: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@122: * mcimadamore@122: * This code is free software; you can redistribute it and/or modify it mcimadamore@122: * under the terms of the GNU General Public License version 2 only, as mcimadamore@122: * published by the Free Software Foundation. mcimadamore@122: * mcimadamore@122: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@122: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@122: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@122: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@122: * accompanied this code). mcimadamore@122: * mcimadamore@122: * You should have received a copy of the GNU General Public License version mcimadamore@122: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@122: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@122: * mcimadamore@122: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@122: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@122: * have any questions. mcimadamore@122: */ mcimadamore@122: mcimadamore@122: /** mcimadamore@122: * @test 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: } mcimadamore@122: }