JAVA-6029Backlog

Value classes in sealed polymorphic structures fail to serialize

Here's example code:   If i try to save TokenEntity it will error with: {code:java} org.bson.BsonInvalidOperationException: writeString can only be called when State is VALUE, not when State is NAME at org.bson.AbstractBsonWriter.throwInvalidState(AbstractBsonWriter.java:748) at org.bson.AbstractBsonWriter.checkPreconditions(AbstractBsonWriter.java:703) at org.bson.AbstractBsonWriter.writeString(AbstractBsonWriter.java:608) at com.mongodb.internal.connection.BsonWriterDecorator.writeStri

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Kotlin
Labels
Tags and classification

No labels assigned.