langtools/test/tools/javac/capture/Martin.java
author mcimadamore
Wed, 26 Oct 2016 15:41:25 +0100
changeset 41856 13a056e8f16e
parent 24796 f940af3221e2
permissions -rw-r--r--
8168774: Polymorhic signature method check crashes javac Summary: Check for polysig method assumes arity is greater than zero Reviewed-by: vromero

/**
 * @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);
    }
}