generated equals method wrong!


Yesterday I found out the the generated equals method in Idea is wrong. I have searched for a bug report and found one. Tracker:

In a comment its said that it has been debated earlier and that Jetbrains has chosen to stay with the wrongly generated equals method. But why ??

A collegue and I tried to do a speed compare with the one generated from Idea and the correct one using getClass. The latter has aprox. 7% overhead. But at anytime I would favor this overhead. Anytime.

So why is the equals generated from Idea still wrong (for not final classes) ?
And if its not going to be corrected then I would very much appreciate that it is changed to a template so I at least have the choice.



Please sign in to leave a comment.