Skip to content

Support "iPhone" style capitalized properties #5152

Open
@cowtowncoder

Description

@cowtowncoder

A long-standing problem (I'll list a few existing issues outlining these) is that if the logical property (and matching field):

  1. Starts with capitalized letter (like "Phone") OR
  2. 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    property-iPhoneIssue related to naming issue for fields like "iPhone"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions