SimpleDateFormat is not thread safe ----------------------------------- Key: BPM-307 URL: http://jira.andromda.org/browse/BPM-307 Project: Bpm4Struts Cartridge Type: Bug
Reporter: Walter Itamar MourĂ£o Assigned to: Wouter Zoons Since SimpleDateFormat is not thread safe, the following code can generate runtime errors. ActionForm.java.vsl: ... #set ($dateFormatter = "${field.name}DateFormatter") private final static java.text.DateFormat $dateFormatter = new java.text.SimpleDateFormat("$field.dateFormat"); #elseif ($field.time) ... CrudForm.java.vsl: ... #if ($member.type.dateType) private static final java.text.DateFormat ${member.name}Formatter = new java.text.SimpleDateFormat("$member.dateFormat"); #set ($lenient = !$member.strictDateFormat) static { ${member.name}Formatter.setLenient($lenient); } ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php