This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I asked NetBeans 6.0M10 to Generate the equals and hashCode methods for me. The hashCode method is almost right. I have a field named "loginKey" which is a String. The generated line was: hash = 29 * hash + this.loginKey != null ? this.loginKey.hashCode() : 0; but parenthesis are needed. The right code is: hash = 29 * hash + (this.loginKey != null ? this.loginKey.hashCode() : 0);
This is fixed now in latest daily build. See issue 105209. Thanks for your report. *** This issue has been marked as a duplicate of 105209 ***