This content has been marked as final.
Show 3 replies
-
1. Re: Attribute names - problem in generated class
jbalunas Jul 8, 2010 9:59 AM (in response to blabno)Good catch, I'll have Alex take a look. Could you create a jira for 4.0 and attach the patch?
Thanks
-Jay
-
2. Re: Attribute names - problem in generated class
alexsmirnov Jul 8, 2010 2:17 PM (in response to blabno)Yes, that is a bug. I took a look for similar attribute in jsf-api and found that it uses 'forValue' as enum name while it returns "for" in toString method.
Seems that I have to check attributes for Java keyword and switch to similar solution if property name concurs with Java keyword.
I've created JIRA issue for that: https://jira.jboss.org/browse/RF-8898
-
3. Re: Attribute names - problem in generated class
blabno Jul 8, 2010 2:40 PM (in response to alexsmirnov)Why adding "Value" suffix for java keywords only? Just add it to all property keys. Your solution is better then mine, because it doesn't involve and require user to know what's under the hood.