2 ms·
My favorite non-thread-safe part of Java is this: SimpleDateFormat YMD = new SimpleDateFormat("yyyy-MM-dd"); If you call YMD.parse() from multiple threads
by p1mrx 10y ago
My favorite non-thread-safe part of Java is this:
SimpleDateFormat YMD = new SimpleDateFormat("yyyy-MM-dd");
If you call YMD.parse() from multiple threads, it will sometimes return the wrong date. Cleaning up the database after that bug was loads of fun.
- sz4kerto 10y agoThis is documented properly though.