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=30717>.
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=30717

MessageResources.java has unsynchronized access to MessageFormat





------- Additional Comments From [EMAIL PROTECTED]  2004-09-02 02:55 -------
The JDK 1.4.2 javadocs for MessageFormat say

"Message formats are not synchronized. It is recommended to create separate 
format instances for each thread. If multiple threads access a format 
concurrently, it must be synchronized externally" 

This makes sense if the setters or the applyPattern() methods are used - but 
Struts isn't using them. From a quick scan the format(Object) method looks 
thread safe to me.

Are you sure that the format(Object) method of MessageFormat isn't thread safe?

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to