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

Carsten Ziegeler commented on FELIX-1242:
-----------------------------------------

The solution for this use case is to use the @Component(componentAbstract=true) 
annotation on the base class. A special descriptor is then created which is 
picked up by the sub class.
The reason for this is that the base class might be contained in some other jar 
which is already compiled and the source and therefore the annotations are not 
available anymore.
I would like to keep it this way and use the same behaviour as with the javadoc 
tags.
WDYT?

> Annotation detection does not work when class contains only field-level 
> annotations
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-1242
>                 URL: https://issues.apache.org/jira/browse/FELIX-1242
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>    Affects Versions: maven-scr-plugin-1.2.0
>            Reporter: Stefan Seifert
>             Fix For: maven-scr-plugin-1.4.0
>
>         Attachments: 090616_detectannotationfix.patch
>
>
> in certain situations java classes contain only field-level SCR annotations 
> (i.e. abstract classes where the real @Component annotations is defined on 
> subclasses).
> in this case, the existing of annotations is not detecting in this class, 
> resulting in ignoring field-level annotations in this abstract class.
> the patch attached [^090616_detectannotationfix.patch] fixes this problem.

-- 
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