[ 
https://issues.apache.org/jira/browse/RNG-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840376#comment-17840376
 ] 

Richard Eckart de Castilho edited comment on RNG-186 at 4/24/24 10:29 AM:
--------------------------------------------------------------------------

Thank you very much for your lightning-fast reaction (*)

For my purposes, I have switched simply to using the Java Random class at the 
moment.

But your description of the remedy sounds correct, so I would expect it works 
now.

You might consider using the 
https://github.com/bndtools/bnd/blob/master/maven-plugins/bnd-testing-maven-plugin
 in your build to check if bundles can in principle resolve.


was (Author: rec):
For my purposes, I have switched simply to using the Java Random class at the 
moment.

But your description of the remedy sounds correct, so I would expect it works 
now.

You might consider using the 
https://github.com/bndtools/bnd/blob/master/maven-plugins/bnd-testing-maven-plugin
 in your build to check if bundles can in principle resolve.

> Commons-RNG Simple imports package that Commons-RNG Core does not export
> ------------------------------------------------------------------------
>
>                 Key: RNG-186
>                 URL: https://issues.apache.org/jira/browse/RNG-186
>             Project: Commons RNG
>          Issue Type: Task
>          Components: core, simple
>    Affects Versions: 1.5
>            Reporter: Richard Eckart de Castilho
>            Priority: Major
>
> Commons RNG Simple imports the following packages:
> {noformat}
> 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
> {noformat}
> However, Commons RNG Core does not export the source packages:
> {noformat}
> 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
> {noformat}
> Consequently, using Commons RNG simple fails in an OSGi environment as the 
> bundle cannot be resolved.
> {noformat}
> [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)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to