logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milind Rao" <mili...@bellsouth.net>
Subject Re: SimpleDateFormat is not thread safe
Date Wed, 25 Feb 2004 09:10:24 GMT
>| I noticed that SimpleDateFormat is used as a static attribute in some
>| classes.  The format and parse methods are not thread safe.  I didn't go
>| through the usage, but possibly this could cause problems in
>| multithreaded usage.
>Does it use instance parameters that's modified within those methods??

Yes.   calendar, pattern etc.  Generally the pattern is the same. but calls to "format" and
"parse" change the 
calendar attribute.


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

View raw message