[ 
https://issues.apache.org/jira/browse/FELIX-644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler closed FELIX-644.
----------------------------------

    Resolution: Fixed

Actually this problem can't be solved completly as maven itself suffers from 
the same problem.
Therefore I just added a simple check for not re-checking a reference of a 
superclass if it is already checked there successfully. This solves the problem 
in most cases.
However, if you implement a subclass that does not inherit the scr information 
from the super class but defines the same references, the super class can't be 
loaded and therefore not checked. In this case a dependency to the external 
module has to be added. (I think this is more a maven problem than a scr one!)

> ClassNotFound exception when inheriting references from a class contained in 
> another bundle
> -------------------------------------------------------------------------------------------
>
>                 Key: FELIX-644
>                 URL: https://issues.apache.org/jira/browse/FELIX-644
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.0.6
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.0.7
>
>
> Example:
> Bundle A contains abstract class A1 with reference to service S comming from 
> a different bundle/jar X
> Bundle B contains class B1 extendind A1
> If Bundle B does not have X as a dependency and scope "provided" is used for 
> the dependency to Bundle A, the class X is not found when the reference to X 
> is checked in Bundle B.
> We can skip these checks as Bundle A has already checked the reference.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to