Mon, 24 Oct 2011 13:00:30 +0100
7098660: Write better overload resolution/inference tests
Summary: Add overload/inference debug diagnostics - added test harness using annotations to check outcome of overload resolution/inference
Reviewed-by: jjg
mcimadamore@564 | 1 | /* |
jjg@581 | 2 | * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
mcimadamore@564 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
mcimadamore@564 | 4 | * |
mcimadamore@564 | 5 | * This code is free software; you can redistribute it and/or modify it |
mcimadamore@564 | 6 | * under the terms of the GNU General Public License version 2 only, as |
mcimadamore@564 | 7 | * published by the Free Software Foundation. |
mcimadamore@564 | 8 | * |
mcimadamore@564 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
mcimadamore@564 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
mcimadamore@564 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
mcimadamore@564 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
mcimadamore@564 | 13 | * accompanied this code). |
mcimadamore@564 | 14 | * |
mcimadamore@564 | 15 | * You should have received a copy of the GNU General Public License version |
mcimadamore@564 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
mcimadamore@564 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
mcimadamore@564 | 18 | * |
jjg@581 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jjg@581 | 20 | * or visit www.oracle.com if you need additional information or have any |
jjg@581 | 21 | * questions. |
mcimadamore@564 | 22 | */ |
mcimadamore@564 | 23 | |
mcimadamore@564 | 24 | /* |
mcimadamore@564 | 25 | * @test |
mcimadamore@564 | 26 | * @bug 6951833 |
mcimadamore@564 | 27 | * |
mcimadamore@564 | 28 | * @summary latest diamond implementation generates spurious raw type warnings |
mcimadamore@564 | 29 | * @author mcimadamore |
mcimadamore@564 | 30 | * @compile -Xlint:rawtypes -Werror T6951833.java |
mcimadamore@564 | 31 | * |
mcimadamore@564 | 32 | */ |
mcimadamore@564 | 33 | |
mcimadamore@564 | 34 | class T6951833<X> { |
mcimadamore@564 | 35 | T6951833<String> bug = new T6951833<>(); |
mcimadamore@564 | 36 | } |