I accidentally left an extra comma at the end of one of my annotation lists, but compiled it on my machine. For example:
@NamedQueries({ @NamedQuery(name="name1",query="FROM Foo"), @NamedQuery(name="name2",query="FROM Bar"), })
Note the extra comma after the second @NamedQuery. It seems to be compiling on my machine, but someone had problems compiling the code on their machine, so I deleted it. But now I'm curious if he is allowed to admit, and if so, which version of java allows this.
I could not find a link to this anywhere online.
java annotations
Happyengineer
source share