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

David Jencks commented on FELIX-4584:
-------------------------------------

I don't think its a good idea to make the felix ds annotations even more 
different than they are now to the spec ds annotations, but I don't feel 
strongly about it.  I don't think you are going to convince the cpeg spec 
committee to change the retention of the spec annotations.

Note that the annotations are not used by the DS runtime (SCR), they are 
translated to xml by some tooling and the xml is used at runtime.  You could 
have your unit tests run the appropriate code from the tooling to extract the 
annotation values.  You could also duplicate the annotation information in the 
unit test.

> Change retention to RUNTIME for Property and Properties annotations
> -------------------------------------------------------------------
>
>                 Key: FELIX-4584
>                 URL: https://issues.apache.org/jira/browse/FELIX-4584
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Tooling
>            Reporter: Jyrki Ruuskanen
>            Priority: Minor
>
> This change allows us to access Property annotation values in plain java unit 
> tests. Without this our unit tests would have to run in an SCR-capable 
> container.
> You may consider changing the retention for the whole lot (why not), but at 
> least these two are necessary.
> https://github.com/apache/felix/pull/9



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to