90e433d72e
Reviewed-by: vromero, jlahoda
20 lines
640 B
Java
20 lines
640 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8320144
|
|
* @summary Compilation crashes when a custom annotation with invalid default value is used
|
|
* @compile/fail/ref=T8320144.out -XDrawDiagnostics T8320144.java
|
|
*/
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
public class T8320144 {
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target({ElementType.TYPE})
|
|
public @interface TestAnnotation {
|
|
public String[] excludeModules() default new String[0];
|
|
public String[] value() default new String[] { 3 };
|
|
}
|
|
}
|