Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5046

OSGi - org.bson.codecs.kotlin and kotlinx imports causing mongodb-driver-core bundle not to be resolved.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.10.2
    • Affects Version/s: 4.10.1
    • Component/s: Packaging
    • None
    • Not Needed
    • 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?

      Summary

      In OSGi environments the org.bson.codecs.kotlin and org.bson.codecs.kotlinx imports causing mongodb-driver-core bundle not to be resolved.

      bson-kotlin and bson-kotlinx are optional dependencies therefore their imports should also be optional.

      Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

      mongodb-driver-core v4.10.1

      How to Reproduce

      Install mongodb-driver-core 4.10.1 in any of the OSGi Runtime(e.g. Apache Felix v7.0.5) where optional dependencies bson-kotlin and bson-kotlinx are not already installed.

      Additional Background

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            irakeshk@outlook.com Rakesh N/A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: