changeset 18008 | 6d75e3886bac |
18007:0afa95bd8bc3 | 18008:6d75e3886bac |
---|---|
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 */ |
|
8 |
|
9 import java.util.List; |
|
10 |
|
11 class T8015505 { |
|
12 |
|
13 <Z> List m() { return null; } |
|
14 |
|
15 void test() { |
|
16 List<?> l = m(); |
|
17 } |
|
18 } |