ice4j icon indicating copy to clipboard operation
ice4j copied to clipboard

TransportAddress does not implement equals and hashCode

Open Geosearchef opened this issue 7 years ago • 0 comments
trafficstars

The TransportAddress class does not override the equals (just some specialized versions provided) and hashcode methods. This redirects those calls to InetSocketAddress. Therefore 2 TransportAddress objects having the same underlying InetAddress but a different Transport will be equal making handling them using Sets impossible (and pretty confusing).

Geosearchef avatar Jun 23 '18 20:06 Geosearchef