lesteryu / log4jdbc

Automatically exported from code.google.com/p/log4jdbc
0 stars 0 forks source link

Potential problem with thread safety and SimpleDateFormat #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Code inspections:
 In RdbmsSpecifics.java a static SimpleDateFormat is used.
  protected static final DateFormat dateFormat = 
    new SimpleDateFormat("MM/dd/yyyy HH:mm:ss.SSS");

The dateFormat object will be used by all threads and SimpleDateFormat is
not thread safe (see javadoc). 

Original issue reported on code.google.com by mark.r.j...@gmail.com on 15 May 2010 at 4:49

GoogleCodeExporter commented 9 years ago
Thanks, good catch!  Fixed: SVN revision 84.

Original comment by arthur.b...@gmail.com on 15 May 2010 at 6:25