2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-29 07:42:42 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 5014305
|
|
|
|
* @summary Malformed annotation type with varargs parameter crashes javac
|
|
|
|
*
|
2014-08-29 07:42:42 +00:00
|
|
|
* @compile/fail/ref=BadAnnotation.out -XDrawDiagnostics BadAnnotation.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
@BadAnnotation(1)
|
|
|
|
@interface BadAnnotation {
|
|
|
|
int value(int... illegal);
|
|
|
|
}
|