langtools/test/tools/javac/capture/Martin.java
author sogoel
Thu, 05 Jun 2014 10:44:38 -0700
changeset 24796 f940af3221e2
parent 5520 86e4b9a9da40
permissions -rw-r--r--
8044064: Group 1: create .out files for cast and capture negative tests in tools/javac dir Reviewed-by: jjg

/**
 * @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 main(String[] args) throws Throwable {
        List<?> x1 = null;
        List<?> x2 = null;
        x1.addAll(x2);
    }
}