Mon, 26 Oct 2015 13:23:30 -0700
Added tag jdk8u76-b00 for changeset 10ffafaf5340
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 8015505
4 * @summary Spurious inference error when return type of generic method requires unchecked conversion to target
5 * @compile/fail/ref=T8015505.out -Xlint:-options -source 7 -XDrawDiagnostics T8015505.java
6 * @compile T8015505.java
7 */
9 import java.util.List;
11 class T8015505 {
13 <Z> List m() { return null; }
15 void test() {
16 List<?> l = m();
17 }
18 }