You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the source from Oracle's JDK, I don't see a threading issue. In fact they synchronise some operations internally, and all state is on the stack it seems. However if the spec says it's not threadsafe, other implementations might not be.
@kwhopper hey sorry I didn't see your comment before pushing a fix for this. Looks like thread local support has been around since JDK 1.2, so I don't see a problem there.
We use DecimalFormat in fields in a few places. Turns out, surprisingly, that the class isn't thread-safe, thanks to this comment by @Nadahar.
Create a new one each time instead.
The text was updated successfully, but these errors were encountered: