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=17328>. 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=17328 Unsafe initialization in PropertyMessageResources ------- Additional Comments From [EMAIL PROTECTED] 2003-03-09 20:20 ------- Ok, I'm attaching a patch for consideration. It's slightly more involved than just synchronizing everything on the locales map, because that would cause all message accesses to any locale to block whenever any locale was loading. The idea I used was to block access to only the locale currently being loaded. This is accomplished by putting a lock object as the value in the locales map instead of a string object (which was just being used as a marker anyway), and using the lock object to synchronize access to the loading locale, if necessary. The patch is against struts 1.1-rc1, but it still applied at least to the March 8th nightly. I haven't submitted a patch to a Jakarta project before, so feedback is appreciated on things like adherance to coding standards, etc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]