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.
1. Create a new class in a Java project, add some bean properties 2. Go to Source -> Insert Code... -> equals() and hashCode() 3. Select some properties for equals() and their superset for hashCode() - this breaks the contract for hashCode() 4. Click Generate - the invalid equals() and hashCode() is generated without any warning There should be a warning or an error that prevents this. BTW, enhancement 28862 would be useful for implementing this check.
moving opened issues from TM <= 6.1 to TM=Dev
This is rather enhancement.
Enhancement? There are so many ways to look at this request. From the point of view of product feature matrix we've got the tick and feature is done; this is an enhancement. From quality point of view we have very primitive implementation allowing user to generate bad code, user eventually figure it out (painful way) and will never trust NB generated code again. From developers point of view this is trivial fix. From issuezilla point of view this enhancement is lost forever as nobody has time to evaluate enhancements. From my point of view we should actually pay a lot more attention to details/issues like this because it is easy to fix yet it contributes to the prestige of IDE. That's why people love IntelliJ - it always does the right thing. My two cents.