Thanks - I found a workaround using JExpr.ref(String). This works for now, I can submit a test later.
-----Original Message-----
From: aleksei.valikov_at_gmail.com [mailto:aleksei.valikov_at_gmail.com] On Behalf Of Aleksei Valikov
Sent: Friday, February 17, 2012 3:04 AM
To: users_at_codemodel.java.net
Subject: Re: Case label using enum values
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