Wed, 23 Oct 2013 23:02:17 +0200
8027191: Fix for JDK-8026861 refers to an incorrect bug number
Summary: Reverting changeset b05db8c815e8, so that it can be applied again with a correct bug number
Reviewed-by: jjg
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 7126754
4 * @summary Generics compilation failure casting List<? extends Set...> to List<Set...>
5 * @compile T7126754.java
6 */
8 import java.util.List;
9 import java.util.Set;
11 public class T7126754 {
12 public static void main(String[] args) {
13 List<Set<? extends String>> a = null;
14 List<? extends Set<? extends String>> b = a;
16 List<? extends Set<? extends String>> c = null;
17 List<Set<? extends String>> d = (List<Set<? extends String>>)c;
18 }
19 }