author | hannesw |
Tue, 22 Mar 2016 14:23:16 +0100 | |
changeset 36690 | 06b714373aa4 |
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 |
} |