14 lines
273 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4901266
* @summary JSR175 (4): don't allow "new" in annotations
* @author gafter
*
* @compile/fail/ref=ArrayLit.out -XDrawDiagnostics ArrayLit.java
2007-12-01 00:00:00 +00:00
*/
@ArrayLit(new int[] {1, 2, 3})
@interface ArrayLit {
int[] value();
}