author | sogoel |
Fri, 29 Aug 2014 00:42:42 -0700 | |
changeset 26274 | 02a5b23ee21c |
parent 24796 | f940af3221e2 |
permissions | -rw-r--r-- |
10 | 1 |
/** |
24796
f940af3221e2
8044064: Group 1: create .out files for cast and capture negative tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 6384510 |
4 |
* @summary improper handling of wildcard captures |
|
5 |
* @author Martin Buchholz |
|
24796
f940af3221e2
8044064: Group 1: create .out files for cast and capture negative tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
6 |
* @compile/fail/ref=Martin.out -XDrawDiagnostics Martin.java |
10 | 7 |
*/ |
8 |
||
9 |
import java.util.List; |
|
10 |
||
11 |
public class Martin { |
|
12 |
public static void main(String[] args) throws Throwable { |
|
13 |
List<?> x1 = null; |
|
14 |
List<?> x2 = null; |
|
15 |
x1.addAll(x2); |
|
16 |
} |
|
17 |
} |