2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-10-01 21:15:40 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4034979
|
|
|
|
* @summary The compiler should never allow void[] to appear as a type
|
|
|
|
* in a program.
|
|
|
|
*
|
2014-10-01 21:15:40 +00:00
|
|
|
* @compile/fail/ref=VoidArray.out -XDrawDiagnostics VoidArray.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public
|
|
|
|
class VoidArray {
|
|
|
|
void[] a = null;
|
|
|
|
|
|
|
|
void[] method2(void[][] x) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|