[
https://issues.apache.org/jira/browse/FELIX-4584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14075362#comment-14075362
]
Jyrki Ruuskanen commented on FELIX-4584:
----------------------------------------
Regarding the specification, I would be tempted to interpret class retention
there as the _minimum_ retention level. Since runtime retention works exactly
as class retention does, but in addition allows easier introspection
particularly in testing, it sounds OK to me. The spec clearly states that SCR
tooling should not consider annotations at runtime, so changing retention to
runtime causes no ambiguity there.
Just my opinion, of course.
> 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)