test/tools/javac/T7126754.java

Thu, 10 Oct 2013 14:58:04 +0200

author
ihse
date
Thu, 10 Oct 2013 14:58:04 +0200
changeset 2094
343aeb2033f0
parent 0
959103a6100f
permissions
-rw-r--r--

8001931: The new build system whitespace cleanup
Reviewed-by: tbell, simonis, erikj

     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