1/*
2 * @test /nodynamiccopyright/
3 * @bug 4973531
4 * @summary annotation syntax allows extra ',' in parameter list.
5 * @author gafter
6 *
7 * @compile/fail/ref=AnnComma.out -XDrawDiagnostics  AnnComma.java
8 */
9
10package annComma;
11
12@ann1(isStatic=false,type="class" ,)
13class TestM4 {
14    @ann1(type="class",isStatic=false,) public void myMethod() {
15        System.out.println(" In side the myMethod");
16    }
17}
18
19@interface ann1 {
20    String type();
21    boolean isStatic();
22}
23