2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-05-15 08:28:43 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 5024518
|
|
|
|
* @summary need warning if varargs argument isn't boxed
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-05-15 08:28:43 +00:00
|
|
|
* @compile Warn1.java
|
|
|
|
* @compile/ref=Warn1.out -XDrawDiagnostics Warn1.java
|
|
|
|
* @compile -Werror -Xlint:none Warn1.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package varargs.warn1;
|
|
|
|
|
|
|
|
class T {
|
|
|
|
static void f(String fmt, Object... args) {}
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
f("foo", args);
|
|
|
|
}
|
|
|
|
}
|