These changes implement a fix for the new behavior of InetSocketAddress.toString() introduced by Java 17.
Basically, throughout platform, instances of the host:port string is derived from InetSocketAddress.toString(). With the new Java 17 behavior, toString() can now generate values as host\unresolved:port. This causes DC tests to fail on asserts. As well, DC console logging will confuse the user with this new 'unresolved' text.
This approach creates a new HostPort type to be used internally throughout the Platform modules. Interfacing with external libraries that require InetSocketAddress is supported through HostPort's conversion to/from InetSocketAddress.
These changes implement a fix for the new behavior of InetSocketAddress.toString() introduced by Java 17.
Basically, throughout platform, instances of the host:port string is derived from InetSocketAddress.toString(). With the new Java 17 behavior, toString() can now generate values as host\unresolved:port. This causes DC tests to fail on asserts. As well, DC console logging will confuse the user with this new 'unresolved' text.
This approach creates a new HostPort type to be used internally throughout the Platform modules. Interfacing with external libraries that require InetSocketAddress is supported through HostPort's conversion to/from InetSocketAddress.