Open
Description
A long-standing problem (I'll list a few existing issues outlining these) is that if the logical property (and matching field):
- Starts with capitalized letter (like
"Phone"
) OR - Has second letter capitalized (like
"iPhone"
)
then there are no possible "getter"/"setter" methods from which property could be derived.
So there is either mismatch or duplication of properties because following won't match:
public class IPhoneBean {
private String iPhone;
// These infer property "iphone" as leading capitals are lower-cased
public String getIPhone() { return iPhone; }
public void setIPhone(String value) { iPhone = value; }
}
same would happen if field name starts with capital letter(s).
Existing issues:
- PropertiesCollector decapitilizes properties names when setter has two consecutive capital letters #2696 (
"oAuth"
) - Annotation to ignore serialization not working with particular variable name (like
dLogHeader
) #2835 ("dLogHeader"
) - (lombok) Variable with the second capital letter is abnormal during serialization and deserialization #4093 (
"mValue"
)