mcimadamore@187: /* xdono@229: * Copyright 2008-2009 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@187: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@187: * mcimadamore@187: * This code is free software; you can redistribute it and/or modify it mcimadamore@187: * under the terms of the GNU General Public License version 2 only, as mcimadamore@187: * published by the Free Software Foundation. mcimadamore@187: * mcimadamore@187: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@187: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@187: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@187: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@187: * accompanied this code). mcimadamore@187: * mcimadamore@187: * You should have received a copy of the GNU General Public License version mcimadamore@187: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@187: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@187: * mcimadamore@187: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@187: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@187: * have any questions. mcimadamore@187: */ mcimadamore@187: mcimadamore@187: /* mcimadamore@187: * @test mcimadamore@187: * @bug 6558559 mcimadamore@187: * @summary Extra "unchecked" diagnostic mcimadamore@187: * @author Maurizio Cimadamore mcimadamore@187: * mcimadamore@187: * @compile T6558559b.java -Xlint:unchecked -Werror mcimadamore@187: */ mcimadamore@187: mcimadamore@187: import java.util.*; mcimadamore@187: mcimadamore@187: class T6558559b { mcimadamore@187: void test(List rawList, List unboundList) { mcimadamore@187: Throwable t0 = (Throwable) Collections.emptyList(); mcimadamore@187: Throwable t1 = (Throwable) rawList; mcimadamore@187: Throwable t2 = (Throwable) unboundList; mcimadamore@187: Object o = unboundList; mcimadamore@187: Throwable t3 = (Throwable) o; mcimadamore@187: } mcimadamore@187: }