You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2017/01/05 06:11:58 UTC

[jira] [Updated] (FELIX-5474) Do not call no-arg Bundle.getHeaders() method

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

Carsten Ziegeler updated FELIX-5474:
------------------------------------
    Fix Version/s: scr-2.0.8

> Do not call no-arg Bundle.getHeaders() method
> ---------------------------------------------
>
>                 Key: FELIX-5474
>                 URL: https://issues.apache.org/jira/browse/FELIX-5474
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-2.0.6
>            Reporter: Thomas Watson
>            Assignee: Thomas Watson
>             Fix For: scr-2.0.8, scr-2.1.0
>
>
> Calling Bundle.getHeaders() method requires additional work by the framework in order to search for translation resources for the bundle headers.  For SCR the headers that are looked up must never be translated (for Service-Component and Bundle-ActivationPolicy).  Only the raw values must be used from the original bundle manifest.
> Instead of using Bundle.getHeaders() the method Bundle.getHeaders(String locale) should be used with an empty string (bundle.getHeaders("")).  This returns the raw headers without requiring the framework to do a locale resource lookup.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)