|
|
Written by Aminur Rashid
|
|
Tuesday, 12 April 2011 |
Recently I was asked by one of our team mate that during load testing, order creation was failing (One of the application I am working on is an Order Management Application) because of wrong inputs. However, the unit tests, with the same input was working fine. Investigation into it, led to (once again) an old jdk "designed" bug 4146524 (or feature). After seeing such issues in a number of applications, I am sure a number of developers are yet not aware of Format objects are not thread-safe. So if you create a Format object (or a MessageFormat, NumberFormat, DecimalFormat, ChoiceFormat, DateFormat or SimpleDateFormat object), it cannot be shared among threads.
Be first to comment this article
  
Add as favourites (33) | Quote this article on your site | Views: 1346 | E-mail |
|
Last Updated ( Tuesday, 12 April 2011 )
|
|
Read more...
|
| |
| |
| |
|
|
|
<< Start < Prev 1 2 Next > End >>
|
| Results 1 - 9 of 13 |