author | lana |
Tue, 25 Apr 2017 07:38:50 +0000 | |
changeset 44909 | b53c770dc04f |
parent 30714 | 2bd9a474f287 |
permissions | -rw-r--r-- |
/* * @test /nodynamiccopyright/ * @bug 5024518 * @summary need warning if varargs argument isn't boxed * @author gafter * * @compile Warn2.java * @compile/fail/ref=Warn2.out -XDrawDiagnostics -Werror Warn2.java * @compile -Werror -Xlint:none Warn2.java */ package varargs.warn2; class T { static void f(String fmt, Object... args) {} public static void main(String[] args) { f("foo", null); } }