Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-454

OSGi declarations contain multiple import headers for javax.transaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Blocker
    • Resolution: Unresolved
    • 2.2.0
    • 2.4.1
    • None
    • OSGi

    • Patch

    Description

      In DBCP-445 an issue for "javax.transaction" import-packages was addressed. Though with the fix for this issue the import-packages will contain "javax.transaction" twice:

      Import-Package: javax.management,javax.naming,javax.naming.spi,javax.s
      ql,javax.transaction,javax.transaction.xa,org.apache.commons.logging,
      org.apache.commons.pool2,org.apache.commons.pool2.impl,javax.transact
      ion.xa;version="1.1.0";partial=true;mandatory:=partial,javax.transact
      ion;version="1.1.0"

      Thus the bundle can't be loaded as duplicate import declarations are prohibited and i.e. Felix will complain about this and refuse to install the bundle. The fix is quite simple by appending the '*' to the end (see attached patch).

      Attachments

        1. patch
          0.7 kB
          Philipp Marx

        Issue Links

          Activity

            People

              mattsicker Matt Sicker
              pmarx Philipp Marx
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: