1 /* 2 * @test /nodynamiccopyright/ 3 * @bug 4034979 4 * @summary The compiler should never allow void[] to appear as a type 5 * in a program. 6 * 7 * @compile/fail/ref=VoidArray.out -XDrawDiagnostics VoidArray.java 8 */ 9 10 public 11 class VoidArray { 12 void[] a = null; 13 method2(void[][] x)14 void[] method2(void[][] x) { 15 return null; 16 } 17 } 18