The docs for SerializablePersistentStateComponent
say you need to use @JvmField
, but this does not work except for Maps and Collections: code
In order for it to work, the field needs to be marked with a storage annotation such as @field:Property
instead in order to trigger this logic
3rd party plugins can also not leverage kotlin-serializazation due to different classloaders make that statement return false, is this expected and tracked as an improvement to the platform?