[
https://issues.apache.org/jira/browse/WW-4943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart closed WW-4943.
-----------------------------
Resolution: Cannot Reproduce
Closing, feel free to re-open once a valid use case will available.
> opensymphony.xwork2.util.LocalizedTextUtil can't get i18n resources
> -------------------------------------------------------------------
>
> Key: WW-4943
> URL: https://issues.apache.org/jira/browse/WW-4943
> Project: Struts 2
> Issue Type: Bug
> Components: Integration
> Affects Versions: 2.3.34
> Reporter: Linus Yan
> Priority: Critical
> Fix For: 2.6
>
>
> This problem is caused by the cache mechanism of i18 resources. In
> findDefaultText() method, it used the ClassLoader hashcode as the key. But
> it forget the child-parent hierarchy. In some framework, they will create new
> ClassLoader as the WebappClassLoader children. In such case,it's impossible
> to find the i18 resources for them.
> Source code in LocalizedTextUtil.findDefaultText:
> List<String> localList =
> classLoaderMap.get(Thread.currentThread().getContextClassLoader().hashCode());
--
This message was sent by Atlassian Jira
(v8.3.4#803005)