[JAVA-5201] Save abstract class fields like Kmongo Created: 14/Oct/23  Updated: 01/Nov/23  Resolved: 01/Nov/23

Status: Closed
Project: Java Driver
Component/s: Codecs, Kotlin
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: ming hei Chui Assignee: Ross Lawley
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by PM Bot [ 01/Nov/23 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to reopen this ticket if you're still experiencing the issue, and add a comment if you're able to provide more information.

Comment by PM Bot [ 24/Oct/23 ]

Hi chris26821@gmail.com! JAVA-5201 is awaiting your response.

If this is still an issue for you, please open Jira to review the latest status and provide your feedback. Thanks!

Comment by Ross Lawley [ 17/Oct/23 ]

Hi chris26821@gmail.com,

Could you please provide more information or an example of what is not supported?

The bson-kotlin library only supports kotlin data classes. When extending a data class with an abstract class, the data class would also have to have all the fields declared. So in that case it would work with bson-kotlin.

The bson-kotlinx library utilizes kotlinx.serialization and that supports abstract class fields, so should also work for you.

Kind regards,

Ross

Comment by PM Bot [ 14/Oct/23 ]

Hi chris26821@gmail.com, thank you for reporting this issue! The team will look into it and get back to you soon.

Generated at Thu Feb 08 09:04:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.