would overloading the annotation with 2 arguments be a solution?
for example the first one for anything domain/context related, the second
for the querystring after the context?
On Mon, 28 Dec 2009 20:56:51 +0100, Levi Hoogenberg
wrote:
> I was about to post the same, but Eclipse accepts this wi
I just tested with JDK 1.5 and 1.6 and there are no errors or warnings
when another annotation attribute is added as long as the new attribute
has a default value. I know there are many places that say the shorthand
version only works if there is a single attribute named value but in
practice i
Indeed, it does appear to be legal, according to the JLS. I just found this
little excerpt:
http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html#9.6
Note that it is legal to use single-element annotations for annotation types
with multiple elements, so long as one element is name