langtools/test/tools/javac/overload/T5090220.java
author jlahoda
Thu, 09 Oct 2014 10:08:52 +0200
changeset 26993 513b2cae81c3
parent 25310 a2e7f254f886
permissions -rw-r--r--
8057652: Request to improve error messages for labeled declarations Summary: Parse labeled statements as block statements to improve error recovery for labeled declarations; related cleanup. Reviewed-by: jjg

/*
 * @test /nodynamiccopyright/
 * @bug 5090220
 * @summary Autoboxing applied when calculating most-specific method
 * @compile/fail/ref=T5090220.out -XDrawDiagnostics  T5090220.java
 */

class T5090220 {
    static void foo(int i1, Integer i2) {
        System.out.println("Integer");
    }
    static void foo(Integer i1, double d) {
        System.out.println("double");
    }
    public static void main(String[] args) {
        foo(5, 5);
    }
}