felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-1242) Annotation detection does not work when class contains only field-level annotations
Date Thu, 18 Jun 2009 06:50:07 GMT

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

Felix Meschberger commented on FELIX-1242:
------------------------------------------

Cannot tell, whether ignoring all  @scr.* annotations unless the @scr.component annotation
is present is correct or wrong. We started off saying -- for simplicity reasons mainly --
that the @scr.component annotation on class level is the one indicator whether a class is
to be looked at as a component.

Only later was support for abstract base components added but the requirement to have a @scr.component
tag was never removed.

I think, it is probably not a big backwards compatibility issue, if we start supporting classes
without @scr.component tags to be used as components.

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


Mime
View raw message