Description
Localizer uses a cache internally to cache the results of getString() methods. The getCacheKey() method creates the key for the cache entries:
getCacheKey(final String key, final Component component, final Locale locale, final String style, final String variation)
When a null component is given, this method creates a cache key from the key param and the locale param, but does not include the style param. When switching between styles, this leads to unexpected behavior.
I'll attach a patch with test cases.