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