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 T6932571a.java
639N/A */
639N/A
639N/Aclass T6932571a {
639N/A static class A<T extends Comparable<? super T>> {
639N/A public void test(T v) {
639N/A Object obj = (Integer)v;
639N/A }
639N/A }
639N/A
639N/A static class B<T extends Comparable<? extends T>> {
639N/A public void test(T v) {
639N/A Object obj = (Integer)v;
639N/A }
639N/A }
639N/A}