2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-12 17:31:31 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4974524
|
|
|
|
* @summary compiler crash with ill-formed annotation
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-12 17:31:31 -07:00
|
|
|
* @compile/fail/ref=Syntax1.out -XDrawDiagnostics Syntax1.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package syntax1;
|
|
|
|
|
|
|
|
import java.lang.annotation.*;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
@Documented
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Target(ElementType.METHOD, ElementType.TYPE)
|
|
|
|
public @interface Syntax1
|
|
|
|
{
|
|
|
|
String elementName();
|
|
|
|
}
|