felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jyrki Ruuskanen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4584) Change retention to RUNTIME for Property and Properties annotations
Date Sat, 26 Jul 2014 12:08:38 GMT

    [ 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

View raw message