langtools/test/tools/javac/6758789/T6758789b.java
author mcimadamore
Thu, 03 Feb 2011 09:38:19 +0000
changeset 8239 d2c934e951e2
parent 3766 7e2df99e9223
permissions -rw-r--r--
7014715: javac returns different error code for certain failure(s) Summary: javac silently crashes when emitting certain kinds of resolution diagnostics Reviewed-by: jjg

/*
 * @test /nodynamiccopyright/
 * @bug 6758789
 * @summary 6758789: Some method resolution diagnostic should be improved
 * @author Maurizio Cimadamore
 *
 * @compile/fail/ref=T6758789b.out -Werror -XDrawDiagnostics -Xlint:unchecked T6758789b.java
 */

class T6758789a {
    class Foo<T> {}

    <X> void m(Foo<X> foo) {}

    void test() {
        m(new Foo());
    }
}