jdk-24/test/langtools/tools/javac/annotations/neg/AnnComma.java
2017-09-12 19:03:39 +02:00

23 lines
469 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4973531
* @summary annotation syntax allows extra ',' in parameter list.
* @author gafter
*
* @compile/fail/ref=AnnComma.out -XDrawDiagnostics AnnComma.java
*/
package annComma;
@ann1(isStatic=false,type="class" ,)
class TestM4 {
@ann1(type="class",isStatic=false,) public void myMethod() {
System.out.println(" In side the myMethod");
}
}
@interface ann1 {
String type();
boolean isStatic();
}