Skip to content

The object that vanishes from the set

A class overrides equals to compare fields, and leaves hashCode inherited. Objects are put into a HashSet, and lookups with an equal object fail to find them.

Why?