langtools/test/tools/javac/capture/Martin.java
author sogoel
Fri, 29 Aug 2014 00:42:42 -0700
changeset 26274 02a5b23ee21c
parent 24796 f940af3221e2
permissions -rw-r--r--
8055074: Group 9a: golden files for 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);
    }
}