Skip to content

java.lang.ClassCastException with compose-runtime 1.4.0-alpha02 #641

@alexvanyo

Description

@alexvanyo

Description
Paparazzi tests fail with java.lang.ClassCastException when using compose-runtime 1.4.0-alpha02

Steps to Reproduce

  • Update compose-runtime to 1.4.0-alpha02
  • Try to run a Paparazzi test

Additional information:
The internals of Recomposer.kt were recently updated, which changed the type of snapshotInvalidations from a val MutableList to a var MutableSet.

Paparazzi retrieves this field by reflection and casts it to a MutableList, which causes a java.lang.ClassCastException due to the update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions