struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4943) opensymphony.xwork2.util.LocalizedTextUtil can't get i18n resources
Date Thu, 03 Jan 2019 13:36:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16733034#comment-16733034
] 

ASF GitHub Bot commented on WW-4943:
------------------------------------

lukaszlenart commented on pull request #308: [WW-4943] Tries to use parent CL if no bundle
for current CL
URL: https://github.com/apache/struts/pull/308
 
 
   Fixes [WW-4943](https://issues.apache.org/jira/browse/WW-4943)
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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
(v7.6.3#76005)

Mime
View raw message