test/tools/javac/T7126754.java

Mon, 01 Jun 2015 15:19:54 -0700

author
darcy
date
Mon, 01 Jun 2015 15:19:54 -0700
changeset 3834
45746e46893b
parent 0
959103a6100f
permissions
-rw-r--r--

8075546: Add tiered testing definitions to the langtools repo
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 }

mercurial