Java APIs should be inaccessible when using Kotlin driver

XMLWordPrintableJSON

    • 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.

            Assignee:
            Nabil Hachicha
            Reporter:
            Richard Schielek
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: