2007-12-01 00:00:00 +00:00
|
|
|
/**
|
|
|
|
* @test /nodynamiccopyright/
|
2017-07-12 06:57:57 +00:00
|
|
|
* @bug 5012028 6384539 8074364
|
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
|
2020-05-17 15:09:52 +00:00
|
|
|
* @compile --enable-preview -source ${jdk.version} IllegalAnnotation.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
class IllegalAnnotation {
|
|
|
|
{
|
|
|
|
@interface SomeAnnotation { }
|
|
|
|
}
|
|
|
|
}
|