On 02/12/14 09:13, Kristian Rosenvold wrote:
While patching the FastDateFormat I came across several static
instances of NumberFormat and DecimalFormat, and all of them look like
a violation of the specification - since "Formats" in general are not
thread safe, as can be seen from the javadoc.
Most of them are unused/irrelevant, but especially the one in
org.apache.jena.riot.process.normalize.NormalizeValue looks like a
potential bug.
Now I know you can find discussions if this is actually a problem
(http://stackoverflow.com/questions/4387170/decimalformat-formatdouble-in-different-threads),
but I also know about all the subtle issues we've had with static
Format classes in other projects.
Do you like living on the edge, or should I create a patch ?
:-)
When I live on the edge, I prefer to do it with harness and climbing
rope attached.
Kristian