Where is 'Generate .equals / hashCode' ?

I am wondering where the option for generating equals/hashcode is located... it used to be in the 'Generate' popup but it is not anymore. The documentation, state that it should be there... it is not... as demonstrated by the picture I attach to this post...

Any idea ?

I am using IDEA 7.0.3 (and 7.0.4)

Thanks
Yan



Attachment(s):
hashCode.tiff
3 comments
Comment actions Permalink

Hello Yan,

I am wondering where the option for generating equals/hashcode is
located... it used to be in the 'Generate' popup but it is not
anymore. The documentation, state that it should be there... it is
not... as demonstrated by the picture I attach to this post...

Any idea ?


This action is not available in anonymous classes because it's not possible
to case the Object parameter of these methods to the correct type.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

It was indeed an anonymous class... I confirm that it works with 'regular' classes. Thanks for the answer!

PS: There is a message in this thread telling me to use 'helpful' or 'correct' button... and I want to do it, but I don't see either of those buttons! :(

Edited by: Yan Pujante on Aug 18, 2008 11:32 PM

0
Comment actions Permalink

>
PS: There is a message in this thread telling me to use 'helpful' or 'correct' button... and I want to do it, but I don't see either of those buttons! :(


Those can only be applied to replies posted through the web forum. If a user replies via e-mail, those options are not available. You can tell e-mail based replies by the user name; it is in italics. And there is no number of posts or date registered information below the user name for e-mail based replies.

0

Please sign in to leave a comment.