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

Remove MapperFeature.USE_STD_BEAN_NAMING #11

Closed
cowtowncoder opened this issue Sep 24, 2017 · 1 comment
Closed

Remove MapperFeature.USE_STD_BEAN_NAMING #11

cowtowncoder opened this issue Sep 24, 2017 · 1 comment

Comments

@cowtowncoder
Copy link
Member

This feature was added for backwards compatibility, to allow enabling of standard bean naming behavior for case of multiple leading upper-case characters. Canonical example is:

public URL getURL();

which according to Bean naming should NOT be modified -- that is, should infer property "URL" -- but that with Jackson 1.x and 2.x would by default be all lower-cased ("url").

We want to get things more compatible with standard behavior, so this feature effectively changes from default of false to true. But there seems to be little point in supporting older behavior: it is possible to get such behavior by either:

  1. Annotating limited number of cases with @JsonProperty or
  2. Writing/modifying one of PropertyNamingStrategy cases to handle these cases.
@cowtowncoder
Copy link
Member Author

Fixed: FasterXML/jackson-databind#1772

@cowtowncoder cowtowncoder changed the title Remove MapperFeature. USE_STD_BEAN_NAMING Remove MapperFeature.USE_STD_BEAN_NAMING Sep 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant