cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33097] - caching of i18n XMLResourceBundle's is faulty with multiple locations
Date Tue, 18 Jan 2005 13:44:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33097>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33097





------- Additional Comments From joerg.heinicke@gmx.de  2005-01-18 14:44 -------
Just an additional comment: The original synchronization of access was buggy
IMO. The access to the non-cached map was not synchronized and the init of the
bundles is not synchronized because of a call to selectCached() outside of the
synchronized(this) in _select(String[] directories, int index, String name,
Locale locale). Also there was a double check whether the file exists in the
cache - by accident or planned?

        XMLResourceBundle bundle = selectCached(fileName);
        if (bundle == null) {
            synchronized (this) {
                bundle = selectCached(fileName);
                if (bundle == null) {


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message