Skip to content

Tighten accessor naming rules to not allow leading lower-case or non-letter character for getters/setters #2882

@cowtowncoder

Description

@cowtowncoder

(follow-up to #2729)

Jackson 2.x allows accessors names like:

  • get_value(), island(), setter() (to indicate properties _value, land and ter, respectively)

although does allow ways to change these defaults via AccessorNamingStrategy (since #2800 added for 2.12).
This is due to backwards-compatibility.

But with 3.0 we can change the restrictions and it seems reasonable to default to not including examples like listed above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions