users@codemodel.java.net

Re: Case label using enum values

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 17 Feb 2012 10:03:47 +0100

Hi,

> Hi, is there any way to generate case label using enums? It must not be qualified and JExpr.direct doesn't work because it puts the value in parens and compiler doesn't like this.


Might be that it's not working. CodeModel was initially written before
Java 1.5 so it can be that some of the syntax is not propertly
supported.
Would you please put up a unit test?

Bye,
/lexi