Maurizio Cimadamore 96d0749bfc 6569633: Varargs: parser error when varargs element type is an array
Explicit error message when old-style array syntax is mixed with varargs

Reviewed-by: jjg
2011-01-24 15:45:24 +00:00

14 lines
343 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6569633
* @author mcimadamore
* @summary Varargs: parser error when varargs element type is an array
* @compile/fail/ref=T6569633.out -XDrawDiagnostics T6569633.java
*/
class T6569633 {
void m1 (Integer... i[]) { }
void m2 (Integer[]... i) { }
void m3 (Integer[]... i[]) { }
}