Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
karmakaze
· 7y ago · 0 comments
And also using the java.util.concurrdent package sidesteps most foot-guns involving roll your own synchronization.
Comments
[–]
willtim
7y ago
Perhaps most, but not all. Even something as simple as a date formatter in Java is not thread-safe.
[–]
dropofwill
7y ago
That was fixed with the Java 8 package java.time.format,
https://docs.oracle.com/javase/8/docs/api/java/time/format/D...
[–]
willtim
7y ago
Ok bad example, but it shouldn't have taken them 15+ years to fix it.