-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: 5.5.1
-
Component/s: None
-
None
-
Java Drivers
-
None
-
None
-
None
-
None
-
None
-
None
When using e.g. Filters, the org.mongodb:mongodb-driver-kotlin-extensions module delivers a refactoring-safe and Kotlin-idiomatic API, which also respects kotlinx-serialization annotations. Still, the Java API is still accessible and this might lead to accidental bugs when confusing the two Filters implementations com.mongodb.kotlin.client.model.Filters and com.mongodb.client.model.Filters.
For a future release (breaking change) I suggest hiding the Java API (com.mongodb.client.model.Filters and equivalent classes) to avoid such confusion.