Make the Kotlin sync and coroutine ClientSession type hierarchy consistent with each other

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • 6.0.0
    • Affects Version/s: None
    • Component/s: Kotlin
    • None
    • Java Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      • com.mongodb.kotlin.client.coroutine.ClientSession
        • wraps com.mongodb.reactivestreams.client.ClientSession
        • inherits com.mongodb.session.ClientSession
      • com.mongodb.kotlin.client.ClientSession
        • wraps com.mongodb.client.ClientSession
        • does not inherit com.mongodb.session.ClientSession (instead, it inherits java.io.Closeable)

      This is surprising. If possible, we should make these type hierarchies consistent with each other, and with what's natural / best practice in Kotlin.

      The change may be breaking, so I specified the nearest major version in the "Fix version/s" field.

            Assignee:
            Unassigned
            Reporter:
            Valentin Kavalenka
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: