Skip to content

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

Description

@antmendoza

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions