2007-12-01 00:00:00 +00:00
|
|
|
/**
|
2014-06-05 17:44:38 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6384510
|
|
|
|
* @summary improper handling of wildcard captures
|
|
|
|
* @author Martin Buchholz
|
2014-06-05 17:44:38 +00:00
|
|
|
* @compile/fail/ref=Martin.out -XDrawDiagnostics Martin.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class Martin {
|
2023-01-17 04:43:40 +00:00
|
|
|
public static void meth() {
|
2007-12-01 00:00:00 +00:00
|
|
|
List<?> x1 = null;
|
|
|
|
List<?> x2 = null;
|
|
|
|
x1.addAll(x2);
|
|
|
|
}
|
|
|
|
}
|