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

OSGi package import of jdk.net in mongodb-driver-core-4.3.1.jar

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.1
    • Affects Version/s: None
    • Component/s: Packaging

      The bundle specifies JavaSE-8 as its minimum requirement in its MANIFEST.MF. Yet, its package imports require jdk.net which in a regular Equinox OSGi environment is not part of JavaSE-1.8.profile. With this, projects that include mongodb-driver-core-4.3.1.jar won't compile in a Maven/Tycho build.

      To test things, I've removed the package import on jdk.net from the JAR's manifest, and things seems to work fine.

      Either you should require the Equinox folks to include jdk.net in the JavaSE-8.profile or you should refrain from requiring it in bundles that claim to live with (thanks!) Java8.

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            mongo@homemp3.dyndns.org Donald Duck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: