T6730476a.java revision 546
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus/*
b3d0736ce9ff54f95fc06741c7279172f961363fshankar_mbn * Copyright 2010 Sun Microsystems, Inc. All Rights Reserved.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus *
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * This code is free software; you can redistribute it and/or modify it
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * under the terms of the GNU General Public License version 2 only, as
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * published by the Free Software Foundation.
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus *
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * This code is distributed in the hope that it will be useful, but WITHOUT
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * version 2 for more details (a copy is included in the LICENSE file that
5a3bd0ef762b8a3238869ac9963194555e39e6a7jpikus * accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* @test
* @bug 6730476
*
* @summary invalid "unchecked generic array" warning
* @author mcimadamore
* @compile T6730476a.java -Xlint -Werror
*
*/
class T6730476a {
<T> void f(int i, T ... x) {}
void g() {
f(1);
}
}