|[SOLVED] generated equals missing not null check [message #958879]
||Fri, 26 October 2012 05:34
| Andre Albert
Registered: July 2009
I am asking myself why the not-null-check previously used in the generated equals method is gone. The equals contract (java.lang.Object JavaDoc) says that "For any non-null reference value x, x.equals(null) should return false."
But now, I get a NullPointerException. Also, the generated hashCode method still uses the not-null-check.
Is there any reason for this switch. It looks like this switch was made between Indigo ServiceRelease 1 and ServiceRelease 2 - It is also part in Juno.
[Updated on: Fri, 26 October 2012 07:11]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01513 seconds