GitHub user yuruki opened a pull request:
https://github.com/apache/felix/pull/9
Changed retention to RUNTIME for Property and Properties annotations.
This change allows us to access values in Property annotations 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 (I don't know the
implications of this), but these two are absolutely necessary.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yuruki/felix annotation-runtime-retention
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/felix/pull/9.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9
----
commit 166238871e7ce0df399de1277155caa70083a0e5
Author: Jyrki Ruuskanen <[email protected]>
Date: 2014-07-25T10:02:23Z
Changed retention to RUNTIME for Property and Properties annotations.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---