"Hani Suleiman" > Alain Ravet wrote: > > I'm not bringing back the "All objects should be canonical" thread/war, > > but if > > equals() is not the same as == > > in a user-defined class, > > equals() should be overwriten or throw an "Not Yet Implemented" exception. > > Same for hashCode(). > > > That'll be fun, having all sorts of objects thrown exceptions when you > put them in maps, and whenever an 'implicit' call to equals/hashCode is > done.
What will be really fun is that, if you don't override equals() and hashcode() when you should, java collections won't work as expected. > Which leads me onto another rant! I have a somewhat odd request, can the > IDEA team please NOT listen to users so much? :-) _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features
