Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6069

Derby doesn't export the version number in its OSGI exported packages

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.8.3.0, 10.9.1.0
    • Fix Version/s: None
    • Component/s: Build tools
    • Urgency:
      Normal

      Description

      Derby doesn't export the version number in its OSGI exported packages. See the following exports:

      karaf@root> headers 259
      
      Apache Derby 10.8 (259)
      -----------------------
      Manifest-Version = 1.0
      Ant-Version = Apache Ant 1.7.0
      Class-Path = derbyLocale_cs.jar derbyLocale_de_DE.jar derbyLocale_es.jar derbyLocale_fr.jar derbyLocale_hu.jar derbyLocale_it.jar derbyLocal
      e_ja_JP.jar derbyLocale_ko_KR.jar derbyLocale_pl.jar derbyLocale_pt_BR.jar derbyLocale_ru.jar derbyLocale_zh_CN.jar derbyLocale_zh_TW.jar
      Sealed = true
      Created-By = 2.4 (IBM Corporation)
      
      Bundle-Vendor = Apache Software Foundation
      Bundle-Activator = org.apache.derby.osgi.EmbeddedActivator
      Bundle-Name = Apache Derby 10.8
      Bundle-SymbolicName = derby
      Bundle-Version = 10.8.3000000.1405108
      Bundle-ManifestVersion = 2
      
      DynamicImport-Package =
              *
      Export-Package =
              org.apache.derby.authentication,
              org.apache.derby.database,
              org.apache.derby.io,
              org.apache.derby.jdbc,
              org.apache.derby.vti
      
      karaf@root> headers 250
      
      Apache Derby 10.9 (250)
      -----------------------
      Manifest-Version = 1.0
      Ant-Version = Apache Ant 1.7.1
      Class-Path = derbyLocale_cs.jar derbyLocale_de_DE.jar derbyLocale_es.jar derbyLocale_fr.jar derbyLocale_hu.jar derbyLocale_it.jar derbyLocal
      e_ja_JP.jar derbyLocale_ko_KR.jar derbyLocale_pl.jar derbyLocale_pt_BR.jar derbyLocale_ru.jar derbyLocale_zh_CN.jar derbyLocale_zh_TW.jar
      Sealed = true
      Created-By = 20.6-b01-415 (Apple Inc.)
      
      Bundle-Vendor = Apache Software Foundation
      Bundle-Activator = org.apache.derby.osgi.EmbeddedActivator
      Bundle-Name = Apache Derby 10.9
      Bundle-SymbolicName = derby
      Bundle-Version = 10.9.1000000.1344872
      Bundle-ManifestVersion = 2
      
      DynamicImport-Package =
              *
      Export-Package =
              org.apache.derby.authentication,
              org.apache.derby.database,
              org.apache.derby.io,
              org.apache.derby.jdbc,
              org.apache.derby.vti
      

      This leads to problems, if other bundles imports derby packages with a specific version or version range (like spring-jdbc do):

      karaf@root> headers 251
      Spring JDBC (251)
      -----------------
      Manifest-Version = 1.0
      ...
      Import-Package =
              ...
              org.apache.derby.impl.io;resolution:=optional;version="[10.5.0, 11.0.0)",
              org.apache.derby.jdbc;resolution:=optional;version="[10.5.0, 11.0.0)",
      ...
      

        Attachments

        1. MANIFEST.MF
          39 kB
          Christian Müller

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              muellerc Christian Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: