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