I just read about this blog post that might be worth pointing out:
http://www.tomhalligan.co.uk/category/technology/programming/

The summary: be careful when using '==' with Integers (as opposed to ints).

The problem is sometimes hard to diagnose because Java caches Integer
objects from -128 to 127. I remember reading about this when I first
started playing with Autoboxing, but this is one of those small details
that it is easy to forget.

Regards,
Vineet

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to