Skip to content

Fully document API changes made in 3.0 #5161

@odrotbohm

Description

@odrotbohm

Search before asking

  • I searched in the issues and found nothing similar.

Describe the bug

I am in the process of migrating a large code base containing an extensive set of custom Jackson (de)serializers and the experience is suboptimal. Types are gone, methods are moved or even removed without any hint, what implementors are supposed to do instead. Here's a (certainly non-exhaustive) shortlist of things I found:

  • StdScalarSerializer.getSchema(…) is gone
  • JsonToken.FIELD_NAME is now JsonToken.PROPERTY_NAME I assume
  • PropertyNamingStrategyBase is gone. It had been deprecated before, but without recommendation what to use instead.
  • NamingBase.translate(String) is protected now
  • JsonGenerator.getOutputContext() apparently is ….streamWriteContext() now
  • JsonGenerator.getCurrentValue() apparently is ….currentValue() now
  • MapSerializer.construct(…) signature has changed completely
  • ObjectMapper.findMixInClassFor(Class) is gone
  • How do I tweak an existing ObjectMapper instance? I understand I can use JsonMapper.builder() to create a new one, but I need to be able to configure existing instances.
  • What's a good replacement for ObjectMapper.copy()?
  • The MapperFeature.AUTO_DETECT_… constants are gone

Version Information

3.0 RC4

Reproduction

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation-related taskto-evaluateIssue that has been received but not yet evaluated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions