test/tools/javac/generics/inference/6356673/T6365166.java

Wed, 09 Apr 2008 13:53:45 +0100

author
mcimadamore
date
Wed, 09 Apr 2008 13:53:45 +0100
changeset 25
57ba4f70f0d8
child 554
9d9f26857129
permissions
-rw-r--r--

6365166: javac (generic) unable to resolve methods
Summary: Unignore regression test as this bug has been fixed by CR 6278587
Reviewed-by: jjg

mcimadamore@25 1 /*
mcimadamore@25 2 * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
mcimadamore@25 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mcimadamore@25 4 *
mcimadamore@25 5 * This code is free software; you can redistribute it and/or modify it
mcimadamore@25 6 * under the terms of the GNU General Public License version 2 only, as
mcimadamore@25 7 * published by the Free Software Foundation.
mcimadamore@25 8 *
mcimadamore@25 9 * This code is distributed in the hope that it will be useful, but WITHOUT
mcimadamore@25 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mcimadamore@25 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mcimadamore@25 12 * version 2 for more details (a copy is included in the LICENSE file that
mcimadamore@25 13 * accompanied this code).
mcimadamore@25 14 *
mcimadamore@25 15 * You should have received a copy of the GNU General Public License version
mcimadamore@25 16 * 2 along with this work; if not, write to the Free Software Foundation,
mcimadamore@25 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mcimadamore@25 18 *
mcimadamore@25 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
mcimadamore@25 20 * CA 95054 USA or visit www.sun.com if you need additional information or
mcimadamore@25 21 * have any questions.
mcimadamore@25 22 */
mcimadamore@25 23
mcimadamore@25 24 /**
mcimadamore@25 25 * @test
mcimadamore@25 26 * @bug 6365166
mcimadamore@25 27 * @summary javac (generic) unable to resolve methods
mcimadamore@25 28 * @author Maurizio Cimadamore
mcimadamore@25 29 *
mcimadamore@25 30 * @compile T6365166.java
mcimadamore@25 31 */
mcimadamore@25 32
mcimadamore@25 33 import java.util.*;
mcimadamore@25 34
mcimadamore@25 35 public class T6365166 {
mcimadamore@25 36 static <A> void add(List<? super A> l, List<A> la) {
mcimadamore@25 37 l.addAll(la); //doesn't compile - but it should
mcimadamore@25 38 }
mcimadamore@25 39 }
mcimadamore@25 40

mercurial