[
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)