You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hashCode function of the util.HashMap class generates the same hash for, e.g. 23 and '23' (integer and string type, respectively). In this respect the function behaves differently than many other hash functions, e.g. in
Node
patrickwestphal
changed the title
hashCode function in util.HashMap returns same value for and integer and a string containing same integer
hashCode function in util.HashMap returns same value for an integer and a string containing same integer
Jan 12, 2015
The
hashCode
function of theutil.HashMap
class generates the same hash for, e.g. 23 and '23' (integer and string type, respectively). In this respect the function behaves differently than many other hash functions, e.g. inNode
Python
and R
Moreover it breaks this test.
Is this behaviour intended or a bug?
The text was updated successfully, but these errors were encountered: