Re: Curious instance equality issue with Longs

2011-06-29 Thread Juan Pablo Gardella
You must use equals() to compare objects. I have similar issue, but inverse. In production run and in dev mode not. The problem I think is, for example the next expression: anInteger == otherInteger If are different objects don't work in Java (becouse compare memory pointers), but when GWT

Curious instance equality issue with Longs

2011-06-28 Thread Jens
Hi, I just fixed a bug in my application and the circumstances under which the bug has occurred (or better has been noticed) are really strange and maybe someone here can give me a hint to understand it. First of all the bug itself was pretty dump because I have done a businessObject.getId()