The LocalCoordinator#hashCode() method calculates the hashcode of the servers map which contains a collection of Servers for which their hashcode will be calculated. The issue is that the Server class keeps a reference to its LocalCoordinator and will call the hashcode method forever.
The
LocalCoordinator#hashCode()
method calculates the hashcode of theservers
map which contains a collection ofServer
s for which theirhashcode
will be calculated. The issue is that theServer
class keeps a reference to its LocalCoordinator and will call thehashcode
method forever.