changeset 10 | 06bc494ca11e |
child 6150 | d055fa8ced62 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/test/tools/javac/T6224167.java Sat Dec 01 00:00:00 2007 +0000 @@ -0,0 +1,12 @@ +/* + * @test /nodynamiccopyright/ + * @bug 6224167 + * @summary misleading error message when both array and varargs + * methods are defined + * @compile/fail/ref=T6224167.out -XDstdout -XDrawDiagnostics T6224167.java + */ +class T6224167 +{ + void printf(String s, Object[] args) { } + void printf(String s, Object... args) { } +}