I'm looking for interesting war stories on situations where you had a bug because you missed something important in the documentation of a class you were instantiating or a function/method you were using.
For example, I recently messed up by not reading the documentation for the Java Calendar class and noticing that it counts months from 0... Very nasty surprise that I found the first time I was dealing with a date in December.
Any stories, especially in Java, would be appreciated.
(This is for my PhD research, I'm interested in other people's experiences)