author | lana |
Thu, 21 Jan 2016 09:46:01 -0800 | |
changeset 35340 | 38f7386ed942 |
parent 26901 | 2c11dc81a5c8 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26901
2c11dc81a5c8
8055783: Group 9e: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4034979 |
4 |
* @summary The compiler should never allow void[] to appear as a type |
|
5 |
* in a program. |
|
6 |
* |
|
26901
2c11dc81a5c8
8055783: Group 9e: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=VoidArray.out -XDrawDiagnostics VoidArray.java |
10 | 8 |
*/ |
9 |
||
10 |
public |
|
11 |
class VoidArray { |
|
12 |
void[] a = null; |
|
13 |
||
14 |
void[] method2(void[][] x) { |
|
15 |
return null; |
|
16 |
} |
|
17 |
} |