langtools/test/tools/javac/Diagnostics/8010387/T8010387.java
author vromero
Tue, 06 Sep 2016 17:04:43 -0700
changeset 40835 6ab9ed1abc46
parent 39812 6272642715a1
permissions -rw-r--r--
8162546: change hidden options -Xdebug to --debug, -XshouldStop to --should-stop, and -diags to --diags Reviewed-by: mcimadamore

/**
 * @test /nodynamiccopyright/
 * @bug     8010387
 * @summary rich diagnostic sometimes contain wrong type variable numbering
 * @compile/fail/ref=T8010387.out -XDrawDiagnostics --diags:formatterOptions=disambiguateTvars,where T8010387.java
 */
abstract class T8010387<X> {

    interface F<X> { }

    <P> void test() {
        m(new F<P>() { });
    }


    abstract <T> T8010387<?> m(F<? extends X> fx);
}