jdk-24/test/langtools/tools/javac/parser/SingleCommaAnnotationValueFail.java

14 lines
355 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8012722
* @summary Single comma in array initializer should parse
* @compile/fail/ref=SingleCommaAnnotationValueFail.out -XDrawDiagnostics
* SingleCommaAnnotationValueFail.java
*/
public class SingleCommaAnnotationValueFail {
// Non-example
@Foo({,0}) void a() { }
}
@interface Foo { int[] value(); }