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