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
Priority: Minor
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.