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 6569057 6932571
639N/A * @summary Generics regression on cast
639N/A * @compile T6569057.java
639N/A */
639N/A
639N/Aclass T6569057 {
639N/A static class A<X extends B<?>> { }
639N/A
639N/A static class B<X extends A<?>> {
639N/A D<? extends B<X>> get() { return null; }
639N/A }
639N/A
639N/A static class D<Y extends B<?>> {}
639N/A
639N/A <E extends B<?>> void test(E x, D<B<A<?>>> d) {
639N/A boolean b = x.get() == d;
639N/A }
639N/A}