java.lang.ClassCastException with compose-runtime 1.4.0-alpha02
alexvanyo opened this issue · 1 comments
alexvanyo commented
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.