382fe51b6d
Reviewed-by: vromero
18 lines
367 B
Java
18 lines
367 B
Java
/**
|
|
* @test /nodynamiccopyright/
|
|
* @bug 6384510
|
|
* @summary improper handling of wildcard captures
|
|
* @author Martin Buchholz
|
|
* @compile/fail/ref=Martin.out -XDrawDiagnostics Martin.java
|
|
*/
|
|
|
|
import java.util.List;
|
|
|
|
public class Martin {
|
|
public static void meth() {
|
|
List<?> x1 = null;
|
|
List<?> x2 = null;
|
|
x1.addAll(x2);
|
|
}
|
|
}
|