Subclasses of SocketAddress are now used in preference to InetAddress when doing
socket operation. Many security checks are based on comparing addresses. It is therefore important that the comparison between two such objects be guaranteed.
InetSocketAddress should implement equals() & hashCode() and make them final
so that the semantic can't be changed in a subclass.
socket operation. Many security checks are based on comparing addresses. It is therefore important that the comparison between two such objects be guaranteed.
InetSocketAddress should implement equals() & hashCode() and make them final
so that the semantic can't be changed in a subclass.