commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24941] - LocaleBeanUtils.populate() doesn't accept localized input map
Date Fri, 16 Jan 2004 16:00:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24941>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24941

LocaleBeanUtils.populate() doesn't accept localized input map





------- Additional Comments From francois.maurit@improve.fr  2004-01-16 16:00 -------
As I mentionned in the related Struts bug (bug #24856), I feel like Stutz
proposed patch is not thread safe, which is quite an issue when using
LocaleBeanUtils in combination with Struts.

Let say we have two users on the server, there is simple thread issues:
- user A: LocaleBeanUtils.setDefaultLocale(localeA);
- user B: LocaleBeanUtils.setDefaultLocale(localeB);
- user A: LocaleBeanUtils.populate(beanA, propertiesA); //converts using localeB

So I feel the change should be more like making a new populate method with a
different signature:
LocaleBeanUtils.populate(Object bean, Map properties, Locale locale) {...}

This being said, I am impressed by the amount of work you already dedicated to
this issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message