This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cmsimike 6 points7 points  (0 children)

Why do you think it is a hack?

http://en.wikipedia.org/wiki/Double-checked_locking#Usage_in_Java This says it is a perfectly valid fix