Java

Topics ranging from java runtime to server deployments and frameworks

Reason to serialVersionUID your serializable classes

Quoting Eclipse FAQ: “When classes compiled in Eclipse are written to an object stream, you may not be able to read them back in a program that was compiled elsewhere. Many people blame this on the Eclipse compiler, assuming that it is somehow not conforming properly to spec. In fact, this can be a problem [...]

4 Comments

Welcome back, dear word-wrap

At first sorry about those who have been checking for an update of this blog for a month. Regardless of this inactivity there have been quite a lot visitors. I’m glad to see that people like what I’m doing. Thank you! There have been busy days and let’s admit – weather in Estonia has been [...]

Also posted in Eclipse | Leave a comment

Lazy-init variables are not always safe

Have you ever used following to lazy-initialize your variable? If you have then don’t. Just to remind or introduce, it looks OK but it isn’t – this is a pretty serious bug you can easily make. And it’s called Double-Checked Locking. Very good and easy-to-understand explanation is here

Leave a comment