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-3049) Use DS 1.1 per default
Date Sat, 23 Jul 2011 16:15:09 GMT

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

Felix Meschberger commented on FELIX-3049:

I disagree because it does not match the DS spec which defaults to 1.0. There may be cases
where a no-arg deactivate method might not be meant for DS...

Instead of setting the specVersion attribute you might also annotate the activate or deactivate
method with the @Activate or @Deactivate annotation, resp. This will, as a side effect, cause
the correct spec. version to be used in the descriptor.

> Use DS 1.1 per default
> ----------------------
>                 Key: FELIX-3049
>                 URL: https://issues.apache.org/jira/browse/FELIX-3049
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin, SCR Annotations
>    Affects Versions: maven-scr-plugin-1.7.2, scr ant task 1.1.2
>            Reporter: Konrad Windszus
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.7.4, scr ant task 1.1.4
> When you have a deactivate method with no arguments, which is valid, according to the
OSGi spec (R4 Comp. 112.5.14) I will get the warning:
> [WARNING] @Component: Lifecycle method deactivate has wrong number of arguments at Java
annotations in <Classfile:Linenumber>
> Probably this is also a problem with activate methods.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message