You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2016/12/09 11:12:58 UTC

[jira] [Updated] (SLING-6382) JcrResourceBundle.getBaseBundleName() always returns null

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

Konrad Windszus updated SLING-6382:
-----------------------------------
    Description: The method {{getBaseBundleName}} being added with Java8 to {{ResourceBundle}} (https://docs.oracle.com/javase/8/docs/api/java/util/ResourceBundle.html#getBaseBundleName--) always returns {{null}} for {{JcrResourceBundles}}. The reason for that is that the private field {{name}} inside {{ResourceBundle}} only gets set if {{loadBundle(CacheKey cacheKey, List<String> formats,Control control,boolean reload)}} gets called.  (was: The method {{getBaseBundleName}} being added with Java8 to {{ResourceBundle}} (https://docs.oracle.com/javase/8/docs/api/java/util/ResourceBundle.html#getBaseBundleName--) always returns {{null}} for {{JcrResourceBundle}}s. The reason for that is that the private field {{name}} inside {{ResourceBundle}} only gets set if {{loadBundle(CacheKey cacheKey, List<String> formats,Control control,boolean reload)}} gets called.)

> JcrResourceBundle.getBaseBundleName() always returns null
> ---------------------------------------------------------
>
>                 Key: SLING-6382
>                 URL: https://issues.apache.org/jira/browse/SLING-6382
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Konrad Windszus
>            Priority: Minor
>
> The method {{getBaseBundleName}} being added with Java8 to {{ResourceBundle}} (https://docs.oracle.com/javase/8/docs/api/java/util/ResourceBundle.html#getBaseBundleName--) always returns {{null}} for {{JcrResourceBundles}}. The reason for that is that the private field {{name}} inside {{ResourceBundle}} only gets set if {{loadBundle(CacheKey cacheKey, List<String> formats,Control control,boolean reload)}} gets called.



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