On Monday 03 December 2007 16:03, Stand Trooper wrote:
The second example is correct. It doesn't matter that it's in a
Grails Controller, or shouldn't... I'm loading up my ide now. I ran
all examples in Java and Groovy (4 examples run total) and only the
default first causes a problem (lexer issue?)
Default in Java means nothing else is, generally accepted, to be
after it. The correct placement is always at the end of the switch
statement. And Groovy does require the default to be at the end of
Well, I contend:
a) This is in itself an unjustified and unjustifiable constraint.
b) Java does not impose this restriction.