temporalio / temporalio/sdk-java

KotlinObjectMapperFactory is not forwards compatible

Open
#2,071 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
433
Forks
249
Avg merge
5d 6h
Merged PRs (30d)
26

Description

Expected Behavior

KotlinObjectMapperFactory works

Actual Behavior

KotlinObjectMapperFactory crashes with MethodNotFoundError

Steps to Reproduce the Problem

  1. Use temporal kotlin
  2. Upgrade jackson kotlin library
  3. Crash

Specifications

  • Version:
  • Platform:

Instead of using a deprecated method, it would have been best to try using the builder first, then fall back to the deprecated KotlinModule constructor. Alternatively, we should just use the builder as we can't even pick which KotlinModule constructor we compile against.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate KotlinObjectMapperFactory and trace how it initializes KotlinModule when the Jackson Kotlin library is upgraded. Verify the failure involving the deprecated constructor and MethodNotFoundError, then confirm that the factory works with the upgraded library without breaking supported configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.