Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5474

Do not call no-arg Bundle.getHeaders() method

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            tjwatson Tom Watson
            tjwatson Tom Watson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: