Open cgrand opened 6 years ago
That's an interesting puzzle. When I add clojure.lang.ChunkedCons carbonite.ClojureSeqSerializer
(or com.esotericsoftware.kryo.serializers.FieldSerializer
) to default-serializers
in portkey.kryo
then I get this exception:
S occurs on the right-hand side of your grammar, but not on the left
Is this another bug?
Hmmm no. This type (nor FlattenOnDemandVector
) throws an exception when roundtripped through kryo. Since we get no exceptions, they are not part of the serialization.
Error reads
It means we are deserializing a descendant of
ASeq
but Kryo is using its standardCollectionSerializer
which is meant for mutable collections that's why it callsCollection/add
which is not supported by the type at hand.Next step: figure out this type.