test/tools/javac/Diagnostics/6799605/T6799605.java

Thu, 02 Aug 2012 18:22:41 +0100

author
mcimadamore
date
Thu, 02 Aug 2012 18:22:41 +0100
changeset 1296
cddc2c894cc6
parent 384
ed31953ca025
child 2525
2eb010b6cb22
permissions
-rw-r--r--

7175911: Simplify error reporting API in Check.CheckContext interface
Summary: Make error messages generated during Check.checkType more uniform and more scalable
Reviewed-by: jjg, dlsmith

mcimadamore@238 1 /**
jjg@384 2 * @test /nodynamiccopyright/
mcimadamore@238 3 * @bug 6799605
mcimadamore@238 4 * @summary Basic/Raw formatters should use type/symbol printer instead of toString()
mcimadamore@238 5 * @author mcimadamore
mcimadamore@238 6 * @compile/fail/ref=T6799605.out -XDrawDiagnostics T6799605.java
mcimadamore@296 7 * @compile/fail/ref=T6799605.out -XDoldDiags -XDrawDiagnostics T6799605.java
mcimadamore@238 8 */
mcimadamore@238 9
mcimadamore@238 10 class T6799605<X> {
mcimadamore@238 11
mcimadamore@238 12 <T extends T6799605<T>> void m(T6799605<T> x1) {}
mcimadamore@238 13 <T> void m(T6799605<T> x1, T6799605<T> x2) {}
mcimadamore@238 14 <T> void m(T6799605<T> x1, T6799605<T> x2, T6799605<T> x3) {}
mcimadamore@238 15
mcimadamore@238 16 void test(T6799605<?> t) {
mcimadamore@238 17 m(t);
mcimadamore@238 18 m(t, t);
mcimadamore@238 19 m(t, t, t);
mcimadamore@238 20 }
mcimadamore@238 21 }

mercurial