jdk
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
10public
11class VoidArray {12void[] a = null;13
14void[] method2(void[][] x) {15return null;16}17}
18