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

core: do not use DeserializationFeature.READ_ENUMS_USING_TO_STRING #630

Merged
merged 1 commit into from
Sep 8, 2022

Commits on Sep 8, 2022

  1. core: do not use DeserializationFeature.READ_ENUMS_USING_TO_STRING

    DeserializationFeature.READ_ENUMS_USING_TO_STRING causes jackson to
    deserialize enums using their toString implementation, however, this
    implementation may have been overridden to returns a value that does not
    match Enum#name(), causing deserialization to fail. Because of this it
    would make more sense to use the default, which uses Enum#name() as it
    is less likely to be overridden.
    
    Additionally, the corresponding serialization config
    (WRITE_ENUMS_USING_TO_STRING), which will make jackson use different
    methods for serialization and deserialization.
    
    Bug-Url: https://bugzilla.redhat.com/2123008
    Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
    bennyz authored and mwperina committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    ff78ae0 View commit details
    Browse the repository at this point in the history