2007-12-01 00:00:00 +00:00
|
|
|
/**
|
|
|
|
* @test /nodynamiccopyright/
|
2020-10-28 17:18:46 +00:00
|
|
|
* @bug 5012028 6384539 8074364 8250741 8246774
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary javac crash when declare an annotation type illegally
|
|
|
|
*
|
2015-05-15 08:09:51 +00:00
|
|
|
* @compile/fail/ref=IllegalAnnotation.out -XDrawDiagnostics IllegalAnnotation.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
class IllegalAnnotation {
|
|
|
|
{
|
|
|
|
@interface SomeAnnotation { }
|
|
|
|
}
|
|
|
|
}
|