VarargsOverride.java revision 609
262N/A/*
262N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
262N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
262N/A *
262N/A * This code is free software; you can redistribute it and/or modify it
262N/A * under the terms of the GNU General Public License version 2 only, as
262N/A * published by the Free Software Foundation.
262N/A *
262N/A * This code is distributed in the hope that it will be useful, but WITHOUT
262N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
262N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
262N/A * version 2 for more details (a copy is included in the LICENSE file that
262N/A * accompanied this code).
262N/A *
262N/A * You should have received a copy of the GNU General Public License version
262N/A * 2 along with this work; if not, write to the Free Software Foundation,
262N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
262N/A *
262N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
262N/A * or visit www.oracle.com if you need additional information or have any
262N/A * questions.
262N/A */
262N/A
262N/A// key: compiler.misc.varargs.override
262N/A// key: compiler.warn.override.varargs.extra
262N/A// options: -Xlint:overrides
262N/A
262N/Aclass Base {
262N/A void m(Object... x) { }
262N/A}
262N/A
262N/Aclass VarargsOverride extends Base {
262N/A void m(Object[] x) { }
262N/A}
262N/A