1/*
2 * @test /nodynamiccopyright/
3 * @bug 5024518
4 * @summary need warning if varargs argument isn't boxed
5 * @author gafter
6 *
7 * @compile Warn1.java
8 * @compile/ref=Warn1.out -XDrawDiagnostics Warn1.java
9 * @compile -Werror -Xlint:none Warn1.java
10 */
11
12package varargs.warn1;
13
14class T {
15    static void f(String fmt, Object... args) {}
16
17    public static void main(String[] args) {
18        f("foo", args);
19    }
20}
21