temporalio / temporalio/sdk-java

[kotlin] Replaying a workflow history across different compiler versions (e.g. 2.2.0 → 2.4.0) can cause NDE

Open
#2,989 1 comment 0 reactions 1 assignee View on GitHub

@dplyukhin is already working on this.

Since Aug 25, 2026.

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

Description

Actual Behavior

After upgrading the Kotlin compiler from 2.2.0 to 2.4.0, replaying existing workflow histories throws a NonDeterministicException when the workflow schedules an async command via a method reference (Async.function(child::emphasize, assignee)) . Scheduling the same command as a lambda (Async.function { child.emphasize(assignee) }) mitigates it.

Steps to Reproduce the Problem

Attached the project with a the reproduction

33996.zip

Specifications

  • Version:
  • Platform:

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.