jdk-24/test/langtools/tools/javac/capture/Martin.java

18 lines
367 B
Java
Raw Normal View History

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