234N/A/*
553N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
234N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
234N/A *
234N/A * This code is free software; you can redistribute it and/or modify it
234N/A * under the terms of the GNU General Public License version 2 only, as
234N/A * published by the Free Software Foundation.
234N/A *
234N/A * This code is distributed in the hope that it will be useful, but WITHOUT
234N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
234N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
234N/A * version 2 for more details (a copy is included in the LICENSE file that
234N/A * accompanied this code).
234N/A *
234N/A * You should have received a copy of the GNU General Public License version
234N/A * 2 along with this work; if not, write to the Free Software Foundation,
234N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
234N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
234N/A */
234N/A
234N/A/*
234N/A * @test
234N/A * @author mcimadamore
234N/A * @bug 6467183
234N/A * @summary
234N/A * @compile/fail -Xlint:unchecked -Werror -XDrawDiagnostics T6467183b.java
234N/A */
234N/A
234N/Aclass T6665356b<T> {
234N/A
234N/A class A<S> {}
234N/A class B<X> extends A<X> {}
234N/A
234N/A void cast(A<? extends Number> a) {
234N/A Object o = (B<? extends Integer>)a;
234N/A }
234N/A}