297N/A/*
553N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
297N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
297N/A *
297N/A * This code is free software; you can redistribute it and/or modify it
297N/A * under the terms of the GNU General Public License version 2 only, as
297N/A * published by the Free Software Foundation.
297N/A *
297N/A * This code is distributed in the hope that it will be useful, but WITHOUT
297N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
297N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
297N/A * version 2 for more details (a copy is included in the LICENSE file that
297N/A * accompanied this code).
297N/A *
297N/A * You should have received a copy of the GNU General Public License version
297N/A * 2 along with this work; if not, write to the Free Software Foundation,
297N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
297N/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.
297N/A */
297N/A
297N/A/**
297N/A * @test
297N/A * @bug 6835428
297N/A * @author mcimadamore
297N/A * @summary regression: return-type inference rejects valid code
297N/A * @compile T6835428.java
297N/A */
297N/A
297N/Aclass T6835428<T> {
297N/A interface X<T> {}
297N/A <T extends Comparable<? super T>> T6835428<X<T>> m() { return null; }
297N/A <T extends Comparable<? super T>> void test() {
297N/A T6835428<X<T>> t = m();
297N/A }
297N/A}