felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre De Rop (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5236) Single @Property annotation on a type doesn't work
Date Sat, 16 Apr 2016 21:44:25 GMT

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

Pierre De Rop commented on FELIX-5236:

Thanks Bram for reporting.

Just added a test case in dm.runtime integration tests which reproduces the bug (revision
See src/org/apache/felix/dm/runtime/itest/components/Felix5236.java and src/org/apache/felix/dm/runtime/itest/tests/Felix5236Test.java

> Single @Property annotation on a type doesn't work
> --------------------------------------------------
>                 Key: FELIX-5236
>                 URL: https://issues.apache.org/jira/browse/FELIX-5236
>             Project: Felix
>          Issue Type: Bug
>          Components: Dependency Manager Annotations
>    Affects Versions: org.apache.felix.dependencymanager-r8
>            Reporter: Bram Pouwelse
>            Assignee: Pierre De Rop
> FELIX-5180 introduced the option to add @Property annotations on a type, this doesn't
work in case there is only a single property. 
>  The {{AnnotationCollector}} gets the @Property annotations by reading the value of the
@RepatableProperty annotation. This @RepeatableProperty is only available when there is more
than one @Property annotation. 
> {quote}
>  If more than one annotation of the requested type is present, you can obtain them by
first getting their container annotation. 
> {quote}
> https://docs.oracle.com/javase/tutorial/java/annotations/repeating.html

This message was sent by Atlassian JIRA

View raw message