Skip to content

Migrate from Jackson 2.15.0 to Jackson 3.0.4#940

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/add-jackson-3-support
Draft

Migrate from Jackson 2.15.0 to Jackson 3.0.4#940
Copilot wants to merge 5 commits intomainfrom
copilot/add-jackson-3-support

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Jackson 2.x is being phased out. This PR migrates to Jackson 3.0.4, the latest stable release.

Breaking Changes

Requires Java 17+ (Jackson 3 baseline requirement)

Users on Java 8-11 should remain on twilio-java 11.X.X.

Dependencies

  • Jackson 3.0.4 artifacts use group ID tools.jackson.* (was com.fasterxml.jackson.*)
  • jackson-annotations 2.20 remains at com.fasterxml.jackson.core (Jackson 3 design)
  • jackson-datatype-jsr310 removed (JSR-310 support now built into databind)

Code Changes

Package imports (~5K occurrences):

// Before
import com.fasterxml.jackson.databind.ObjectMapper;

// After  
import tools.jackson.databind.ObjectMapper;

Exception hierarchy (unchecked in Jackson 3):

  • JsonProcessingExceptionJacksonException
  • JsonParseExceptionStreamReadException
  • JsonMappingExceptionDatabindException

Deserializers:

// Before
public class ISO8601Deserializer extends JsonDeserializer<ZonedDateTime> {
    @Override
    public ZonedDateTime deserialize(JsonParser parser, DeserializationContext context) 
            throws IOException { ... }
}

// After
public class ISO8601Deserializer extends ValueDeserializer<ZonedDateTime> {
    @Override
    public ZonedDateTime deserialize(JsonParser parser, DeserializationContext context) { ... }
}

ObjectMapper configuration (immutable builder pattern):

// Before
new XmlMapper(factory).configure(Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true)

// After
XmlMapper.builder(factory).enable(Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY).build()

JavaTimeModule removed (no longer needed):

// Before
new ObjectMapper().registerModule(new JavaTimeModule())

// After
new ObjectMapper()  // JSR-310 support built-in

Files Changed

654 files modified across main and test sources.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • central.sonatype.com
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Jackson 3 support</issue_title>
<issue_description>As Jackson 2 is being phased out, could you introduce support for Jackson 3?
We would like to completely get rid of the Jackson 2 dependency in our projects.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits February 19, 2026 08:36
Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>
Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>
Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>
Co-authored-by: manisha1997 <28821901+manisha1997@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for Jackson 3 to remove Jackson 2 dependency Migrate from Jackson 2.15.0 to Jackson 3.0.4 Feb 19, 2026
Copilot AI requested a review from manisha1997 February 19, 2026 08:55
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

Successfully merging this pull request may close these issues.

Jackson 3 support

2 participants