felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-5543) Make component property types implement java.lang.annotation.Annotation properly
Date Tue, 14 Feb 2017 12:46:41 GMT

     [ https://issues.apache.org/jira/browse/FELIX-5543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Konrad Windszus updated FELIX-5543:
-----------------------------------
    Issue Type: Bug  (was: Improvement)

> Make component property types implement java.lang.annotation.Annotation properly
> --------------------------------------------------------------------------------
>
>                 Key: FELIX-5543
>                 URL: https://issues.apache.org/jira/browse/FELIX-5543
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-2.1.0
>            Reporter: Konrad Windszus
>
> Currently component property types only implement one getter method for each element.
The methods {{toString()}}, {{equals()}}, {{hashCode()}} and {{annotationType}} are not implemented
properly (i.e. all return just {{null}}). The component property type object actually implements
{{java.lang.annotation.Annotation}} and therefore needs to implement its interface properly.
The current implementation is clearly violating the contract of the {{java.lang.annotation.Annotation}}.
> For that the {{Annotations#toObject(...)}} needs to be adjusted in https://github.com/apache/felix/blob/trunk/scr/src/main/java/org/apache/felix/scr/impl/inject/Annotations.java#L41.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message