1) Create a class with some field of non-atom type
2) Instantiate an object from the class and call hashCode on it
3) Check that hashCode of non-atom type is not called
For object equivalence purposes, System.identityHashCode must be called instead of non-atom hashCode, because for non-atom it is impossible to check and ensure equivalence.
Steps to reproduce:
1) Create a class with some field of non-atom type 2) Instantiate an object from the class and call hashCode on it 3) Check that hashCode of non-atom type is not called
For object equivalence purposes,
System.identityHashCode
must be called instead of non-atomhashCode
, because for non-atom it is impossible to check and ensure equivalence.