InferredDoNotConformToUpper.java revision 1250:6f0ed5a89c25
1124524Sume/* 266776Skris * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 355163Sshin * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 455163Sshin * 5222732Shrs * This code is free software; you can redistribute it and/or modify it 655163Sshin * under the terms of the GNU General Public License version 2 only, as 762632Skris * published by the Free Software Foundation. 855163Sshin * 955163Sshin * This code is distributed in the hope that it will be useful, but WITHOUT 1055163Sshin * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1155163Sshin * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1255163Sshin * version 2 for more details (a copy is included in the LICENSE file that 1355163Sshin * accompanied this code). 1455163Sshin * 1555163Sshin * You should have received a copy of the GNU General Public License version 1655163Sshin * 2 along with this work; if not, write to the Free Software Foundation, 1755163Sshin * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1855163Sshin * 1962632Skris * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2055163Sshin * or visit www.oracle.com if you need additional information or have any 2155163Sshin * questions. 2255163Sshin */ 2355163Sshin 2455163Sshin// key: compiler.err.cant.apply.symbol.1 2555163Sshin// key: compiler.misc.inferred.do.not.conform.to.upper.bounds 2655163Sshin 2755163Sshinimport java.util.*; 2855163Sshin 2955163Sshinclass InferredDoNotConformToUpper { 3055163Sshin <X> void m(X x, List<? super X> lx) {} 3155163Sshin { this.m("", Arrays.asList(1)); } 3255163Sshin} 3355163Sshin