Search code examples
javajackson

What happened to JacksonJaxbJsonProvider class in 2.16.x onwards?


Whilst migrating for Jakarta.x related mess, I realised that JacksonJaxbJsonProvider class was dropped (at least from 2.16.x version onwards).

This is the multi-module repo - https://github.com/FasterXML/jackson-jakarta-rs-providers

And the class is now gone.

Does anyone know what the best replacement option is for these classes. And apologies again if I missed any obvious note in the release sections.

I will be revisiting the notes again before checking this SO thread.


Solution

  • That class - as far as I know - never existed in jackson-jakarta-rs-providers (or actually jackson-jakarta-rs-json-provider) under that name, only in jackson-jaxrs-providers (jackson-jaxrs-json-provider).

    Its replacement when the Jakarta EE variant was created, was named com.fasterxml.jackson.jakarta.rs.json.JacksonXmlBindJsonProvider (for comparison, see the "old" javax JacksonJaxbJsonProvider documentation)