Arrays of non-primitive values crash during runtime in JVM #33
Labels
enhancement
New feature or request
Foundation
Related to the base module
Plugin
Related to the Kotlin compiler plugin
JVM arrays are not really generic, the type of the item they store have to be known at compile time, there is no type erasure.
This means that the current decoder fails during runtime:
The code in question is in Collections.kt
To solve this we have to pass the class the array stores, probably in
ArrayWireFormat
.I'll put this on the self for now as non-primitive arrays can be easily replaced with lists.
The text was updated successfully, but these errors were encountered: