David M. Lloyd wrote:
If the protocol or socket address is specified by String then the implementation would still require to understand the representation so that it can map to the appropriate socket type and domain. Is the concern that applications have a dependency on other SocketAddress types?:I just mean, what would be the benefit of using SocketAddress rather than using a String or Path directly? You can avoid the difficulties of extending SocketAddress by simply not using it.
-Alan.