T6359106.java revision 553
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * This code is free software; you can redistribute it and/or modify it
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * under the terms of the GNU General Public License version 2 only, as
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * published by the Free Software Foundation.
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * This code is distributed in the hope that it will be useful, but WITHOUT
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * version 2 for more details (a copy is included in the LICENSE file that
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * accompanied this code).
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * You should have received a copy of the GNU General Public License version
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * 2 along with this work; if not, write to the Free Software Foundation,
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * or visit www.oracle.com if you need additional information or have any
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * questions.
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * @bug 6359106
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * @summary Valid generics code does not compile
a335d7c88ef4381f965813458962419a72cb7098Neil Madden * @author Peter von der Ah\u00e9
a335d7c88ef4381f965813458962419a72cb7098Neil Maddenpublic class T6359106 {
a335d7c88ef4381f965813458962419a72cb7098Neil Madden interface DeltaRequest extends Request<DeltaRequest, T6359106> {}
a335d7c88ef4381f965813458962419a72cb7098Neil Madden interface RequestMap<V> {
a335d7c88ef4381f965813458962419a72cb7098Neil Madden <R extends Request<R, W>, W extends V> R test (Collection<R> c);
a335d7c88ef4381f965813458962419a72cb7098Neil Madden public void f () {