639N/A/*
639N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
639N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
639N/A *
639N/A * This code is free software; you can redistribute it and/or modify it
639N/A * under the terms of the GNU General Public License version 2 only, as
639N/A * published by the Free Software Foundation.
639N/A *
639N/A * This code is distributed in the hope that it will be useful, but WITHOUT
639N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
639N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
639N/A * version 2 for more details (a copy is included in the LICENSE file that
639N/A * accompanied this code).
639N/A *
639N/A * You should have received a copy of the GNU General Public License version
639N/A * 2 along with this work; if not, write to the Free Software Foundation,
639N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
639N/A *
639N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
639N/A * or visit www.oracle.com if you need additional information or have any
639N/A * questions.
639N/A */
639N/A
639N/A/*
639N/A * @test
639N/A * @bug 6932571
639N/A * @summary Compiling Generics causing Inconvertible types
639N/A * @compile/fail/ref=T6932571neg.out -XDrawDiagnostics T6932571neg.java
639N/A */
639N/A
639N/Aclass T6932571neg {
639N/A interface I<T>{ }
639N/A interface I1 extends I<String> {}
639N/A static class Y implements I<String> {}
639N/A final static class S implements I<String> {}
639N/A
639N/A <G extends I<G>> void test() {
639N/A S s = new S();
639N/A G g = (G) s;
639N/A }
639N/A}