Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1
-
None
Description
org.apache.velocity.tools.ConversionUtils holds a cache for custom formats so it can reuse formatters across different requests:
private static ConcurrentMap<String,NumberFormat> customFormatsCache = new ConcurrentHashMap<String,NumberFormat>();
Problem is formatters don't use to be thread safe so if same formatter is used at the same time by two different threads we can get errors depending on race conditions.
Attachments
Issue Links
- links to