map $ to value for parameter/property name

This commit is contained in:
wing328 2016-02-19 19:39:53 +08:00
parent a14015c1c7
commit 56c4de2180

View File

@ -2198,6 +2198,11 @@ public class DefaultCodegen {
return "ERROR_UNKNOWN";
}
// if the name is just '$', map it to 'value' for the time being.
if ("$".equals(name)) {
return "value";
}
// input[] => input
name = name.replaceAll("\\[\\]", ""); // FIXME: a parameter should not be assigned. Also declare the methods parameters as 'final'.