author | jjg |
Wed, 23 Jan 2013 13:27:24 -0800 | |
changeset 15385 | ee1eebe7e210 |
child 21041 | 99f5e5e97425 |
permissions | -rw-r--r-- |
15385 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
3 |
* @bug 8006775 |
|
4 |
* @summary A cast cannot consist of only an annotation. |
|
5 |
* @author Werner Dietl |
|
6 |
* @compile/fail/ref=BadCast.out -XDrawDiagnostics BadCast.java |
|
7 |
*/ |
|
8 |
class BadCast { |
|
9 |
static void main() { |
|
10 |
Object o = (@A) ""; |
|
11 |
} |
|
12 |
} |
|
13 |
||
14 |
@interface A { } |