Thu, 21 Feb 2013 14:43:51 -0800
8008405: Now that metafactory is in place, add javac lambda serialization tests
Summary: Tests part of original langtools serialization review.
Reviewed-by: mcimadamore
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 6799605
4 * @summary Basic/Raw formatters should use type/symbol printer instead of toString()
5 * @author mcimadamore
6 * @compile/fail/ref=T6799605.out -XDrawDiagnostics T6799605.java
7 * @compile/fail/ref=T6799605.out -XDoldDiags -XDrawDiagnostics T6799605.java
8 */
10 class T6799605<X> {
12 <T extends T6799605<T>> void m(T6799605<T> x1) {}
13 <T> void m(T6799605<T> x1, T6799605<T> x2) {}
14 <T> void m(T6799605<T> x1, T6799605<T> x2, T6799605<T> x3) {}
16 void test(T6799605<?> t) {
17 m(t);
18 m(t, t);
19 m(t, t, t);
20 }
21 }