Wed, 23 Jan 2013 20:57:40 +0000
8006694: temporarily workaround combo tests are causing time out in several platforms
Reviewed-by: jjg
Contributed-by: maurizio.cimadamore@oracle.com
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 7086586
4 * @summary Inference producing null type argument
5 * @compile/fail/ref=T7086586.out -XDrawDiagnostics T7086586.java
6 */
7 import java.util.List;
9 class T7086586 {
11 <T> List<T> m(List<? super T> dummy) { return null; }
13 void test(List<?> l) {
14 String s = m(l).get(0);
15 Number n = m(l).get(0);
16 Exception e = m(l).get(0);
17 m(l).nonExistentMethod();
18 }
19 }