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

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

Yes, if we would do it this way it's maybe not a big deal. But I would like to 
go the other way and ignore the @scr tags if the class has no component tag.
Otherwise it's not possible to prevent a subclass to not inherit the stuff from 
a base class; I think when I added the support for abstract classes I forget 
about the check if the base class has the @scr.component tag. But if we change 
it this way now, this might break existing code.

> 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
>            Priority: Trivial
>             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