Java開発者としてはSimpleDateFormatがスレッドセーフではないことは常識だと思っているのですが、仕事で保守しているシステムでこのオブジェクトをstaticで保持して、マルチスレッドでアクセスするという実装があることが最近発覚して対応に追われました。
An internal customer ran into an ArrayIndexOutOfBoundsException that appears to be the result of multiple threads using the same SimpleDateFormat instance. According to the JavaDocs, SimpleDateFormat ...
Customer stories Events & webinars Ebooks & reports Business insights GitHub Skills ...
One of the things that can be a little tricky for developers new to Java or even for experienced Java developers new to formatting with Java Date s, is the specification of a date/time format using ...