Martin.java revision 553
6982N/A/*
6982N/A * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
6982N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4865N/A *
4865N/A * This code is free software; you can redistribute it and/or modify it
4865N/A * under the terms of the GNU General Public License version 2 only, as
4865N/A * published by the Free Software Foundation.
6982N/A *
6982N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4865N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4865N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4865N/A * version 2 for more details (a copy is included in the LICENSE file that
4865N/A * accompanied this code).
6982N/A *
6982N/A * You should have received a copy of the GNU General Public License version
6982N/A * 2 along with this work; if not, write to the Free Software Foundation,
6982N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4865N/A *
4865N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4865N/A * or visit www.oracle.com if you need additional information or have any
4865N/A * questions.
4865N/A */
4865N/A
4865N/A/**
4865N/A * @test
4865N/A * @bug 6384510
4865N/A * @summary improper handling of wildcard captures
4865N/A * @author Martin Buchholz
4865N/A * @compile/fail Martin.java
4865N/A */
4865N/A
4865N/Aimport java.util.List;
4865N/A
4865N/Apublic class Martin {
4865N/A public static void main(String[] args) throws Throwable {
4865N/A List<?> x1 = null;
4865N/A List<?> x2 = null;
4865N/A x1.addAll(x2);
4865N/A }
4865N/A}
4865N/A