Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alexvanyo opened this issue Nov 30, 2022 · 1 comment · Fixed by #650
Closed

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

alexvanyo opened this issue Nov 30, 2022 · 1 comment · Fixed by #650
Labels
bug Something isn't working

Comments

@alexvanyo
Copy link
Contributor

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.

@alexvanyo alexvanyo added the bug Something isn't working label Nov 30, 2022
ZacSweers added a commit to ZacSweers/paparazzi that referenced this issue Dec 10, 2022
Resolves cashapp#641 in a backward-compatible way
@ZacSweers
Copy link
Contributor

Opened a PR with a backward-compatible fix here: #650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants