myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (TRINIDAD-1587) maven-faces-plugin should allow java compatible variable names when converting list value of "-1"
Date Thu, 22 Oct 2009 21:55:59 GMT

     [ https://issues.apache.org/jira/browse/TRINIDAD-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Robinson resolved TRINIDAD-1587.
---------------------------------------

       Resolution: Fixed
    Fix Version/s:  1.2.11-plugins 
         Assignee: Andrew Robinson

Fixed in 1.2.11

Changed the getConstantNameFromProperty function so that it converts non-alphanumeric characters
to underscores

> maven-faces-plugin should allow java compatible variable names when converting list value
of  "-1"
> --------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1587
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1587
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>         Environment: Any
>            Reporter: Dave Robinson
>            Assignee: Andrew Robinson
>            Priority: Minor
>             Fix For:  1.2.11-plugins 
>
>
> If you are using the component generator (MyFacesComponentGenerator.java) then you could
end up with an invalid generated java file attribute name when converting a property that
has as an allowed value of "-1". 
> For example, having property 'size' with allowed values of "-1 0 1" results in 2 ok properties
for 0 and 1:
> private String size0;
> private String size1;
> but an invalid definition of:
> private String size-1;
> A good solution would be to look for a leading nonA-Z, non0-9 character and replacing
it with a valid character.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message