Skip to content

fix: update Jackson imports for Spring Boot 4.0 / Jackson 3.0 compatibility#94

Merged
JP-Ellis merged 2 commits intorenovate/major-spring-bootfrom
copilot/sub-pr-75
Mar 4, 2026
Merged

fix: update Jackson imports for Spring Boot 4.0 / Jackson 3.0 compatibility#94
JP-Ellis merged 2 commits intorenovate/major-spring-bootfrom
copilot/sub-pr-75

Conversation

Copy link
Contributor

Copilot AI commented Mar 4, 2026

Spring Boot 4.0 bundles Jackson 3.0, which relocated its core package namespace from com.fasterxml.jackson to tools.jackson, breaking compilation.

Changes

  • ProductMessageBuilder.java — update ObjectMapper and exception imports:
    // Before
    import com.fasterxml.jackson.core.JsonProcessingException;
    import com.fasterxml.jackson.databind.ObjectMapper;
    
    // After
    import tools.jackson.core.JacksonException;
    import tools.jackson.databind.ObjectMapper;
  • ProductRepository.java — update catch (JsonProcessingException e)catch (JacksonException e)
  • ProductsKafkaProducerTest.java — update throws JsonProcessingExceptionthrows JacksonException

com.fasterxml.jackson.annotation.JsonFormat in ProductEvent.java is unchanged — jackson-annotations 2.20 retains the com.fasterxml.jackson.annotation namespace in Jackson 3.0.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…bility

Co-authored-by: JP-Ellis <3196162+JP-Ellis@users.noreply.github.com>
Copilot AI changed the title [WIP] Update plugin org.springframework.boot to v4 fix: update Jackson imports for Spring Boot 4.0 / Jackson 3.0 compatibility Mar 4, 2026
@JP-Ellis JP-Ellis marked this pull request as ready for review March 4, 2026 00:48
@JP-Ellis JP-Ellis merged commit 805910b into renovate/major-spring-boot Mar 4, 2026
5 checks passed
@JP-Ellis JP-Ellis deleted the copilot/sub-pr-75 branch March 4, 2026 00:49
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.

2 participants