Java array initialization list ending with a comma

前端 未结 3 1091
逝去的感伤
逝去的感伤 2020-12-19 07:16

The comma , items separator used in an array initialization list may end the list in C, this is mentioned in The C Programming Language 2nd ed by Kernighan

3条回答
  •  旧时难觅i
    2020-12-19 07:38

    Sun javac has a bug wrt parsing trailing commas in annotations.

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=284088

提交回复
热议问题