I accidentally left an extra comma at the end of one of my annotation lists, but it compiled fine on my machine. For example:
@NamedQueries({
@NamedQuery(name="name1",query="FROM Foo"),
@NamedQuery(name="name2",query="FROM Bar"),
})
Notice the extra comma after the second @NamedQuery. It seems to compile fine on my machine, but someone else had problems compiling the code on their machine, so I removed it. But I am now curious as to whether it's supposed to be allowed, and if so, what version of java allows it.
I have not been able to find any reference to this anywhere online.