[richfaces-issues] [JBoss JIRA] Updated: (RF-8898) CDK could generate object names that conflict with Java keywords.

Alexander Smirnov (JIRA) jira-events at lists.jboss.org
Tue Jan 11 15:06:50 EST 2011


     [ https://issues.jboss.org/browse/RF-8898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Smirnov updated RF-8898:
----------------------------------

     Original Estimate: 0 minutes
    Remaining Estimate: 0 minutes


> CDK could generate object names that conflict with Java keywords.
> -----------------------------------------------------------------
>
>                 Key: RF-8898
>                 URL: https://issues.jboss.org/browse/RF-8898
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: cdk
>            Reporter: Alexander Smirnov
>            Assignee: Alexander Smirnov
>             Fix For: Future_4.X
>
>         Attachments: generator.patch.zip, keywordAttributes.patch, keywordAttributes2.patch
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> CDK creates enum for attributes referenced in the property getters/setters. If attribute name coincides with Java keyword, generated Java class couldn't be compiled.
> Mojarra uses a little bit more complicated enum class for these cases, so CDK has to do the same:
>     enum PropertyKeys {
>         forValue("for"),
>         showDetail,
>         showSummary,
>         redisplay;
>         String toString;
>         PropertyKeys(String toString) {
>             this.toString = toString;
>         }
>         PropertyKeys() {
>         }
>         public String toString() {
>             return ((this.toString != null) ? this.toString : super.toString());
>         }
>     }

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list