test/tools/javac/generics/wildcards/T6732484.java

Mon, 07 Feb 2011 18:10:13 +0000

author
mcimadamore
date
Mon, 07 Feb 2011 18:10:13 +0000
changeset 858
96d4226bdd60
parent 798
4868a36f6fd8
child 2525
2eb010b6cb22
permissions
-rw-r--r--

7007615: java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123.
Summary: override clash algorithm is not implemented correctly
Reviewed-by: jjg

mcimadamore@154 1 /*
ohair@798 2 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
mcimadamore@154 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mcimadamore@154 4 *
mcimadamore@154 5 * This code is free software; you can redistribute it and/or modify it
mcimadamore@154 6 * under the terms of the GNU General Public License version 2 only, as
mcimadamore@154 7 * published by the Free Software Foundation.
mcimadamore@154 8 *
mcimadamore@154 9 * This code is distributed in the hope that it will be useful, but WITHOUT
mcimadamore@154 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mcimadamore@154 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mcimadamore@154 12 * version 2 for more details (a copy is included in the LICENSE file that
mcimadamore@154 13 * accompanied this code).
mcimadamore@154 14 *
mcimadamore@154 15 * You should have received a copy of the GNU General Public License version
mcimadamore@154 16 * 2 along with this work; if not, write to the Free Software Foundation,
mcimadamore@154 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mcimadamore@154 18 *
ohair@554 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@554 20 * or visit www.oracle.com if you need additional information or have any
ohair@554 21 * questions.
mcimadamore@154 22 */
mcimadamore@154 23
mcimadamore@154 24 /*
mcimadamore@154 25 * @test
mcimadamore@154 26 * @bug 6732484
mcimadamore@154 27 * @summary Bound error on wildcard code
mcimadamore@154 28 * @author Maurizio Cimadamore
mcimadamore@154 29 * @compile T6732484.java
mcimadamore@154 30 */
mcimadamore@154 31
mcimadamore@154 32 class T6732484 {
mcimadamore@154 33 class A<T extends A<T>> {}
mcimadamore@154 34 class B extends A<B> {}
mcimadamore@154 35
mcimadamore@154 36 A<? super B> f;
jjg@525 37 }

mercurial