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

Set serialization is not supported #7

Closed
zigzago opened this issue Oct 13, 2019 · 1 comment
Closed

Set serialization is not supported #7

zigzago opened this issue Oct 13, 2019 · 1 comment

Comments

@zigzago
Copy link
Collaborator

zigzago commented Oct 13, 2019

See a test case here: https://github.com/Litote/kmongo/blob/master/kmongo-serialization-mapping/src/test/kotlin/SerializationCodecTest.kt#L64

And the stacktrace:


java.lang.IllegalArgumentException: Size must be known in advance when using READ_ALL

	at kotlinx.serialization.internal.ListLikeSerializer.readAll(CollectionSerializers.kt:83)
	at kotlinx.serialization.internal.AbstractCollectionSerializer.patch(CollectionSerializers.kt:35)
	at kotlinx.serialization.internal.AbstractCollectionSerializer.deserialize(CollectionSerializers.kt:49)
	at com.github.jershell.kbson.BsonDocumentDecoder.decodeSerializableValue(BsonDocumentDecoder.kt:46)
	at kotlinx.serialization.TaggedDecoder$decodeSerializableElement$1.invoke(Tagged.kt:245)
	at kotlinx.serialization.TaggedDecoder.tagBlock(Tagged.kt:258)
	at kotlinx.serialization.TaggedDecoder.decodeSerializableElement(Tagged.kt:245)
@jershell jershell added the WIP Work in progress label Oct 18, 2019
@jershell jershell removed the WIP Work in progress label Oct 19, 2019
@jershell
Copy link
Owner

I did it. Please check result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants