Bye, thread safety on java Date & SimpleDateFormat

I used to be pulled into various issue troubleshooting. Several occurrences are related to SimpleDateFormat & java.util.Date from various different developers and teams.

It’s not rocket science for most of experienced developers. But for some new programmer, it is one of the most messed up places.

Now Java 8 is moving these to immutable. Java 8 java.time core date related classes are immutable:

http://www.oracle.com/technetwork/articles/java/jf14-date-time-2125367.html

(I guess Scala’s popularity nowadays should not be a surprise.)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s