2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-08-28 23:42:16 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4901266
|
|
|
|
* @summary JSR175 (4): don't allow "new" in annotations
|
|
|
|
* @author gafter
|
|
|
|
*
|
2014-08-28 23:42:16 -07:00
|
|
|
* @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();
|
|
|
|
}
|