Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cowtowncoder opened this issue Oct 13, 2020 · 1 comment
Labels
3.0 Issue planned for initial 3.0 release
Milestone

Comments

@cowtowncoder
Copy link
Member

(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.

@cowtowncoder cowtowncoder added the 3.x Issues to be only tackled for Jackson 3.x, not 2.x label Oct 13, 2020
@cowtowncoder cowtowncoder changed the title Tighten accessor naming rules to not allow leading lower-case or non-letter character (3.x) Tighten accessor naming rules to not allow leading lower-case or non-letter character Oct 13, 2020
@cowtowncoder cowtowncoder added 3.0 Issue planned for initial 3.0 release and removed 3.x Issues to be only tackled for Jackson 3.x, not 2.x labels Dec 1, 2024
@cowtowncoder cowtowncoder changed the title (3.x) Tighten accessor naming rules to not allow leading lower-case or non-letter character Tighten accessor naming rules to not allow leading lower-case or non-letter character Dec 4, 2024
@cowtowncoder
Copy link
Member Author

Funny: support for this has been available since 2.12. Quite easy to fix after all.

@cowtowncoder cowtowncoder changed the title Tighten accessor naming rules to not allow leading lower-case or non-letter character Tighten accessor naming rules to not allow leading lower-case or non-letter character for getters/setters Mar 28, 2025
@cowtowncoder cowtowncoder added this to the 3.0.0-rc2 milestone Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 Issue planned for initial 3.0 release
Projects
None yet
Development

No branches or pull requests

1 participant