Re: [Stripes-users] Proposal: @UrlBinding annotationthatincludes(sub)domain names

2009-12-29 Thread jfontaine
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

Re: [Stripes-users] Proposal: @UrlBinding annotation thatincludes(sub)domain names

2009-12-29 Thread Aaron Porter
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

Re: [Stripes-users] Proposal: @UrlBinding annotation thatincludes(sub)domain names

2009-12-29 Thread Ben Gunter
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