Uploaded image for project: 'Commons RNG'
  1. Commons RNG
  2. RNG-186

Commons-RNG Simple imports package that Commons-RNG Core does not export

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.6
    • core, simple
    • None
    • Easy

    Description

      Commons RNG Simple imports the following packages:

      Bundle-SymbolicName: org.apache.commons.rng.simple
      Implementation-Version: 1.5
      Import-Package: 
        org.apache.commons.rng,org.apache.commons.rng.core,
        org.apache.commons.rng.core.source32,
        org.apache.commons.rng.core.source64,
        org.apache.commons.rng.core.util
      

      However, Commons RNG Core does not export the source packages:

      Bundle-SymbolicName: org.apache.commons.rng.core
      Implementation-Version: 1.5
      Export-Package: 
        org.apache.commons.rng.core;x-friends:="org.apache.commons.rng.simple";version="1.5.0"
      Private-Package: 
        org.apache.commons.rng.core.source32,
        org.apache.commons.rng.core.source64,
        org.apache.commons.rng.core.util
      

      Consequently, using Commons RNG simple fails in an OSGi environment as the bundle cannot be resolved.

      [ERROR] Resolution failed. Capabilities satisfying the following requirements could not be found:
          [<<INITIAL>>]
              ...
                    ⇒ osgi.wiring.package: (&(osgi.wiring.package=org.apache.commons.rng.simple)(version>=1.5.0)(!(version>=2.0.0)))
                        ⇒ [org.apache.commons.rng.simple version=1.5.0]
                            ⇒ osgi.wiring.package: (osgi.wiring.package=org.apache.commons.rng.core.source32)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: