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.
[ BUILD # : 200904170201 ] [ JDK VERSION : 1.6.* ] Object.equals specifies that any objects that are equal should also have the same hashCode. The NetBeans "equals() and hashCode()" generator (accessed via alt-insert) allows the user to select combinations of class properties that would violate this contract between these methods. I propose that any field in the hashCode side of the selection is disabled and greyed-out until it is selected on the equals side. This would ensure that user do not errantly create incompatible equals() and hashCode() methods.
Sounds like a good idea to me. Any plans on including this in netbeans?
It would be great if could select if I could select which implementation should be selected: -) normal string concatination -) or ToHashCodeBuilder, ToEqualsBuilder....