test/tools/javac/Diagnostics/6722234/T6722234a.java

changeset 0
959103a6100f
child 2525
2eb010b6cb22
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/Diagnostics/6722234/T6722234a.java	Wed Apr 27 01:34:52 2016 +0800
     1.3 @@ -0,0 +1,15 @@
     1.4 +/**
     1.5 + * @test /nodynamiccopyright/
     1.6 + * @bug     6722234
     1.7 + * @summary javac diagnostics need better integration with the type-system
     1.8 + * @author  mcimadamore
     1.9 + * @compile/fail/ref=T6722234a_1.out -XDrawDiagnostics -XDdiags=disambiguateTvars T6722234a.java
    1.10 + * @compile/fail/ref=T6722234a_2.out -XDrawDiagnostics -XDdiags=disambiguateTvars,where T6722234a.java
    1.11 + */
    1.12 +
    1.13 +class T6722234a<T extends String> {
    1.14 +    <T extends Integer> void test(T t) {
    1.15 +        m(t);
    1.16 +    }
    1.17 +    void m(T t) {}
    1.18 +}

mercurial