186N/A/*
797N/A * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
186N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
186N/A *
186N/A * This code is free software; you can redistribute it and/or modify it
186N/A * under the terms of the GNU General Public License version 2 only, as
186N/A * published by the Free Software Foundation.
186N/A *
186N/A * This code is distributed in the hope that it will be useful, but WITHOUT
186N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
186N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
186N/A * version 2 for more details (a copy is included in the LICENSE file that
186N/A * accompanied this code).
186N/A *
186N/A * You should have received a copy of the GNU General Public License version
186N/A * 2 along with this work; if not, write to the Free Software Foundation,
186N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
186N/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.
186N/A */
186N/A
186N/A/*
186N/A * @test
186N/A * @bug 6558559
186N/A * @summary Extra "unchecked" diagnostic
186N/A * @author Maurizio Cimadamore
186N/A *
186N/A * @compile T6558559a.java -Xlint:unchecked -Werror
186N/A */
186N/A
186N/Aclass T6558559a {
186N/A interface A<T> {}
186N/A
186N/A static class B<T> {}
186N/A
186N/A A<?> x = null;
186N/A B<?> y = (B<?>)x;
524N/A}