You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Thomas Watson (JIRA)" <ji...@apache.org> on 2019/01/31 19:06:00 UTC

[jira] [Commented] (FELIX-6043) ClassNotFoundException org.osgi.util.function.Function

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

Thomas Watson commented on FELIX-6043:
--------------------------------------

This is the unfortunate consequence of embedding all the dependencies of your own API into the bundle.  In this case org.osgi.service.component.runtime uses org.osgi.util.promise which uses org.osgi.util.function.  Looks like an oversite when the export of function was added but there was not dependency on function.  I'm not sure why the build is not failing on this.  I thought bnd would complain for something like this.  SCR is currently implementing OSGi R7 but is embedding promise at version 1.0 (from OSGi R6).  I think the dependencies on promise and function should be updated to the latest versions for R7.  That is 1.1.1 for promise and 1.1 for function.

When we get to implementing R8 we will have to remember to up our dependencies on promise and function again to be whatever the R8 versions will be.

> ClassNotFoundException org.osgi.util.function.Function
> ------------------------------------------------------
>
>                 Key: FELIX-6043
>                 URL: https://issues.apache.org/jira/browse/FELIX-6043
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-2.1.14
>            Reporter: Pleeplop
>            Priority: Minor
>
> The manifest declares org.osgi.util.function as exported but it is not embedded.
> A quick fix is to declare the dependency with maven
> see https://github.com/apache/felix/pull/177



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)